Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: magnus@therning.org (Magnus Therning)
Subject: [sup-talk] More maildir
Date: Thu, 13 Sep 2007 16:45:18 +0100	[thread overview]
Message-ID: <20070913154518.GF22606@die.therning.org> (raw)
In-Reply-To: <20070913101519.GA22606@die.therning.org>

On Thu, Sep 13, 2007 at 11:15:19 +0100, Magnus Therning wrote:
>I've attached a patch that adds methods that'll make it easier for sup
>to play nice with other MUAs when using maildir for storage.
>
>Here are some questions:
>
> - What's my Ruby like?  (I hadn't even looked at Ruby just 2 weeks ago
>   so please tell me if I'm doing strange things.)
>
> - The methods names are maildir-centric, any suggestions for better
>   ones?
>
> - The maildir state (the flags) are related to some sup labels
>   ('trashed' is 'deleted' and '!seen' is 'unread').  Is it important to
>   keep them in sync?  (My thinking is no, at least not automatically.
>   The maildir state could be used when finding new mail during sync to
>   set the initial labels.  It would also be nice if state/labels on
>   known messages would sync--I think "read in either => read" and
>   "trashed in either => trashed" is good enough.)
>
>Next steps:
>
> 1. Basically revert the change to Maildir::each I made in another
>    email.  Re-implement it using the methods I introduced here.
> 2. Implement Maildir::delete
> 3. Move the delete method in sup-sync-back into MBox::Loader and modify
>    sup-sync-back.

Patch that uses the new improved maildir methods to add initial labels.

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus?therning?org             Jabber: magnus?therning?gmail?com
http://therning.org/magnus

Some operating systems are called 'user friendly', Linux however is
'expert friendly'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup_522-1.patch
Type: text/x-diff
Size: 387 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/041a088b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/041a088b/attachment-0001.bin 


  reply	other threads:[~2007-09-13 15:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-13 10:15 Magnus Therning
2007-09-13 15:45 ` Magnus Therning [this message]
2007-09-13 15:56 ` Magnus Therning
2007-09-14  3:42 ` William Morgan
2007-09-17 10:55   ` Magnus Therning
2007-09-19 16:02     ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070913154518.GF22606@die.therning.org \
    --to=magnus@therning.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox