docker-offlineimap/offlineimap
Johan Herland 56b0c5dbac Allow custom sorting of mailboxes for mbnames
mutt-sidebar and, probably, other MUA show mailboxes in the order
they are listed in the file written by mbnames.  Therefore, to allow
customization of the order with which mailboxes are listed, introduce
the new 'sort_keyfunc' directive in the [mbnames] section.

'sort_keyfunc' must be a function that will be called once for each
mailbox.  It must accept the only argument -- a dict with 2 items,
'accountname' and 'foldername', and should return an object that
will be used as the sorting key for each mailbox.

Default key function returns (d['accountname'], d['foldername']),
thus sorting by account name and then by the folder name.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
2013-08-02 14:46:44 +04:00
..
folder Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
repository Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
ui Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
utils Create global instance of command-line options 2013-02-11 23:34:18 +04:00
__init__.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
accounts.py Create global instance of command-line options 2013-02-11 23:34:18 +04:00
CustomConfig.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
error.py Introduce new error level FOLDER_RETRY 2011-09-06 19:00:21 +02:00
globals.py Create global instance of command-line options 2013-02-11 23:34:18 +04:00
imaplib2.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
imaplibutil.py IMAPlib mixin class: pass 'readonly' exception to our callers 2012-08-11 11:59:26 +02:00
imapserver.py Execute pre/post hooks for IDLE-toggled syncs 2013-08-02 13:53:21 +04:00
imaputil.py Improve 'find first quotation' regex 2012-08-21 16:58:32 +02:00
init.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Allow custom sorting of mailboxes for mbnames 2013-08-02 14:46:44 +04:00
syncmaster.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00
threadutil.py Fix deadlock for IMAP folder synced in singlethreaded mode 2013-02-05 07:53:25 +04:00