docker-offlineimap/offlineimap/folder
Janna Martl 8096f6cd5b maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option
1. When using maxage, local and remote messagelists are supposed to only
contain messages from at most maxage days ago. But local and remote used
different timezones to calculate what "maxage days ago" means, resulting
in removals on one side. Now, we ask the local folder for maxage days'
worth of mail, find the lowest UID, and then ask the remote folder for
all UID's starting with that lowest one.

2. maxage was fundamentally wrong in the IMAP-IMAP case: it assumed that
remote messages have UIDs in the same order as their local counterparts,
which could be false, e.g. when messages are copied in quick succession.
So, remove support for maxage in the IMAP-IMAP case.

3. Add startdate option for IMAP-IMAP syncs: use messages from the given
repository starting at startdate, and all messages from the other
repository. In the first sync, the other repository must be empty.

4. Allow maxage to be specified either as number of days to sync (as
previously) or as a fixed date.

Signed-off-by: Janna Martl <janna.martl109@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2015-04-07 11:54:35 +02:00
..
__init__.py Use "from . import" for relative imports 2012-02-06 17:41:43 +01:00
Base.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
Gmail.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
GmailMaildir.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
IMAP.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
LocalStatus.py fix: folder/*: never set self.messagelist to None 2015-02-13 17:07:18 +01:00
LocalStatusSQLite.py LocalStatusSQLite: labels: don't fail if database returns unexpected None value 2015-02-22 14:15:55 +01:00
Maildir.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
UIDMaps.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00