X-Git-Url: https://git.madduck.net/etc/offlineimap.git/blobdiff_plain/8e78db8cbc39a428309bcee762d54af539721ca0..7218ce240e6f46b8a9d66d6ec582ed93c8cbdf4f:/.offlineimap/helper.py diff --git a/.offlineimap/helper.py b/.offlineimap/helper.py index 1744243..d758d95 100644 --- a/.offlineimap/helper.py +++ b/.offlineimap/helper.py @@ -2,7 +2,7 @@ import re -base_excludes = ['delayed', 'outgoing', 'Trash', 'Queue', 'inbox'] +base_excludes = ['delayed', 'outgoing', 'Trash', 'Queue', 'inbox', 'Spam', 'Sent', 'Drafts'] base_excludes_re = [ '[Ss]ent.*' ] full_excludes_re = ['discard', 'spool', 'spam', 'store/.+'] prioritised = ['resubmit','drafts','inbox','ardex','kbkg','toni','tahi','debian','mtfk','admin','retrain'] @@ -19,7 +19,7 @@ def py_foldersort_main(x, y): return +1 elif y.startswith(prefix): return -1 - return cmp(x, y) + return (x > y) - (x < y) def py_nametrans(x): return re.sub('^INBOX', 'inbox', x)