docker-offlineimap/offlineimap/folder
James E. Blair a5ea1827fb folder: Base: sort message UID list
Return a sorted list of UIDs in getmessageuidlist.

Some MUAs (and their users) like to display messages in UID order
(or "order received").  If offlineimap is used in IMAP<->IMAP mode,
then the order messages are received by the second IMAP server will
be different because offlineimap iterates over a UID list produced
from the keys of a dictionary, which is unsorted.

This change sorts that list of UIDs so that both IMAP servers will
have their messages in the same order (except those times where
messages are appended to folders on both repositories between
syncs).

Signed-off-by: James E. Blair <corvus@gnu.org>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-08-14 01:56:13 +02:00
..
__init__.py IMAP/IMAP: fix import issue about UIDMaps 2016-07-25 05:26:57 +02:00
Base.py folder: Base: sort message UID list 2016-08-14 01:56:13 +02:00
Gmail.py remove dead code: the description of the passes is never used 2016-07-18 18:41:41 +02:00
GmailMaildir.py GmailMaildir: don't add a tuple to syncmessagesto_passes 2016-07-27 16:29:34 +02:00
IMAP.py folder: IMAP: change raw assert to OfflineImapError 2016-08-04 02:21:22 +02:00
LocalStatus.py local status: deletemessagelist: remove broken code 2016-07-25 15:06:39 +02:00
LocalStatusSQLite.py don't delete messages in local cache in dry-run mode 2016-08-09 15:02:03 +02:00
Maildir.py Maildir: add missing exception instance "as e" in except clause 2016-08-13 16:28:32 +02:00
UIDMaps.py UIDMaps: correctly protect from concurrent writes 2016-07-03 20:00:21 +02:00