diff options
Diffstat (limited to 'offlineimap')
-rw-r--r-- | offlineimap/offlineimap.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/offlineimap/offlineimap.py b/offlineimap/offlineimap.py index 623a4d9..b65a01e 100644 --- a/offlineimap/offlineimap.py +++ b/offlineimap/offlineimap.py @@ -1,16 +1,16 @@ import re -# Mailboxes to check often -main = re.compile('^(INBOX.*|Sent.*|Drafts.*|Templates)$') +# frequently used mailboxes +less_re = re.compile('^(INBOX.*|Drafts|Templates|Sent|Sendt post)$') -# Mailboxes to never check -noise = re.compile('^(Junk.*|Spam|spam|Trash|Deleted.*)$') +# mbox is INBOX showing up double on UW-imap servers... +noise_re = re.compile('^(mbox|spam|Junk|Trash|broken(headers)?)$') -def common( foldername ): - return (main.search(foldername) and not noise.search(foldername)) +def less( foldername ): + return (less_re.search(foldername) and not noise_re.search(foldername)) -def uncommon( foldername ): - return (not main.search(foldername) and not noise.search(foldername)) +def more( foldername ): + return (not less_re.search(foldername) and not noise_re.search(foldername)) def most( foldername ): - return (not noise.search(foldername)) + return (not noise_re.search(foldername)) |