docker-offlineimap/offlineimap
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
..
folder maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
repository Merge branch 'holomorph-remoteuser' into next 2015-03-10 23:06:17 +01:00
ui more style consistency 2015-02-10 17:25:00 +01:00
utils Make OS-default CA certificate file to be requested explicitely 2015-01-18 22:05:49 +03:00
__init__.py v6.5.7-rc3 2015-03-20 11:33:29 +01:00
accounts.py maxage: fix timezone issues, remove IMAP-IMAP support, add startdate option 2015-04-07 11:54:35 +02:00
CustomConfig.py Properly re-raise exception to save original tracebacks 2015-01-12 17:51:21 +03:00
emailutil.py more style consistency 2015-01-08 23:36:19 +01:00
error.py more consistent style 2015-01-07 21:31:43 +01:00
globals.py Create global instance of command-line options 2013-02-11 23:34:18 +04:00
imaplib2.py imaplib2: bump to v2.43 2015-03-25 13:39:13 +01:00
imaplibutil.py Merge branch 'pilou--tests1' into next 2015-04-02 19:32:37 +02:00
imapserver.py idle: continue trying selecting the folder on OfflineImapError.Error 2015-03-18 23:09:34 +01:00
imaputil.py more style consistency 2015-02-10 17:25:00 +01:00
init.py mbnames: add option to write the file once per account 2015-03-22 21:15:46 +01:00
localeval.py localeval: avoid redefining 'file' keyword 2015-01-14 17:18:48 +01:00
mbnames.py mbnames: add option to write the file once per account 2015-03-22 21:15:46 +01:00
syncmaster.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00
threadutil.py more style consistency 2015-02-10 17:25:00 +01:00