]> code.delx.au - offlineimap/commit
Sync INTERNALDATE <-> mtime
authorJohn Goerzen <jgoerzen@complete.org>
Tue, 22 Aug 2006 01:09:36 +0000 (02:09 +0100)
committerJohn Goerzen <jgoerzen@complete.org>
Tue, 22 Aug 2006 01:09:36 +0000 (02:09 +0100)
commit03488ba81b0afc239ee88701384c765cd68db8db
tree5baecbb40f6884b13b93046571c9b81d5da0d905
parente4db4200a24569c9fc6cb09c9f932c9fb6ec02ed
Sync INTERNALDATE <-> mtime

The attached patch adds syncing the INTERNALDATE of IMAP folders with
the mtime of messages in maildir folders.
I want this to happen, because I'm running a dovecot over the maildirs
synced by offlineimap, and that uses the mtime as the INTERNALDATE.
When using mutt to view messages I generally sort based on the received
date, which for IMAP folders is the INTERNALDATE.

Since this is the first real coding I've done in Python the patch may
need to be cleaned up some, but it's working pretty well for me.  I've
added new messages to each side, and the received date has been
preserved going both ways.
offlineimap/folder/Base.py
offlineimap/folder/IMAP.py
offlineimap/folder/LocalStatus.py
offlineimap/folder/Maildir.py
offlineimap/folder/UIDMaps.py
offlineimap/imaplib.py