[sup-talk] More maildir

Magnus Therning magnus at therning.org
Thu Sep 13 06:15:19 EDT 2007


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.

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus@therning.org             Jabber: magnus.therning@gmail.com
http://therning.org/magnus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup_522.patch
Type: text/x-diff
Size: 2076 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070913/f0b09067/attachment-0002.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/f0b09067/attachment-0003.bin 


More information about the sup-talk mailing list