X-Git-Url: https://git.madduck.net/etc/offlineimap.git/blobdiff_plain/7f6aec793e90c72cb6699191e01ed412b6ceb3b7..efa93be624a5559a537e30eb786a0ffa856cd7f9:/.offlineimap/helper.py diff --git a/.offlineimap/helper.py b/.offlineimap/helper.py index 47b9825..32f4631 100644 --- a/.offlineimap/helper.py +++ b/.offlineimap/helper.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- -import re, os, stat, time, atexit +import re -base_excludes = ['delayed', 'outgoing', 'Trash', 'Sent', 'Queue', 'sent'] -full_excludes_re = ['discard', 'spool', 'spam', 'store\..+'] -prioritised = ['outgoing','resubmit','drafts','inbox','ardex','debian','sudetia','admin','retrain'] +base_excludes = ['delayed', 'outgoing', 'Trash', 'Queue', 'inbox'] +base_excludes_re = [ '[Ss]ent.*' ] +full_excludes_re = ['discard', 'spool', 'spam', 'store/.+'] +prioritised = ['resubmit','drafts','inbox','ardex','kbkg','toni','tahi','debian','mtfk','admin','retrain'] deprioritised = ['discard','spam','store','spool'] def py_foldersort_main(x, y): @@ -27,6 +28,9 @@ def py_folderfilter_main(x): if x in base_excludes: return False + elif re.search('^(' + '|'.join(base_excludes_re) + ')', x): + return False + elif re.search('^(' + '|'.join(full_excludes_re) + ')', x): return False