docker-offlineimap/offlineimap
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
..
folder folder: Base: sort message UID list 2016-08-14 01:56:13 +02:00
repository XOAUTH2: fix the *_eval configuration options 2016-07-29 16:38:58 +02:00
ui Fix typo in format string in machineui 2016-08-04 02:20:10 +02:00
utils Make OS-default CA certificate file to be requested explicitely 2015-01-18 22:05:49 +03:00
__init__.py v7.0.5 2016-08-10 15:03:17 +02:00
accounts.py add the repository name when connecting 2016-07-30 01:44:27 +02:00
bundled_imaplib2.py bump from imaplib2 v2.53 to v2.55 2016-06-11 11:08:02 +02:00
CustomConfig.py ConfigHelperMixin must be new-style class to not break inheritance 2016-07-30 04:26:25 +02:00
emailutil.py Rename email.Parser to email.parser 2016-05-10 02:53:09 +02:00
error.py more consistent style 2015-01-07 21:31:43 +01:00
globals.py fix: when called with -a, mbnames must not erase entries of other accounts 2016-06-25 17:33:42 +02:00
imaplibutil.py improve error message when ssl_version must be set due to the tls_level 2016-07-25 03:29:25 +02:00
imapserver.py imapserver: change lambdas with map to list comprehension 2016-08-05 00:06:26 +02:00
imaputil.py Add workaround for string.split for Python3 2016-05-10 02:53:09 +02:00
init.py offlineimap.conf: allow non-spaces in the account list 2016-07-28 04:06:52 +02:00
localeval.py minor code enhancements 2016-07-28 00:42:35 +02:00
mbnames.py Remove an unused import 2016-08-09 22:40:45 +02:00
threadutil.py threadutil: use 'with' statements for lock 2016-07-03 20:03:14 +02:00
virtual_imaplib2.py bump from imaplib2 v2.53 to v2.55 2016-06-11 11:08:02 +02:00