blob: 623a4d960abda0fbe4d61188ca1b2592c991e1db (
plain)
- import re
- # Mailboxes to check often
- main = re.compile('^(INBOX.*|Sent.*|Drafts.*|Templates)$')
- # Mailboxes to never check
- noise = re.compile('^(Junk.*|Spam|spam|Trash|Deleted.*)$')
- def common( foldername ):
- return (main.search(foldername) and not noise.search(foldername))
- def uncommon( foldername ):
- return (not main.search(foldername) and not noise.search(foldername))
- def most( foldername ):
- return (not noise.search(foldername))
|