summaryrefslogtreecommitdiff
path: root/src/leap/mail/constants.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-01 18:21:44 -0400
committerKali Kaneko <kali@leap.se>2015-01-21 15:07:19 -0400
commit30387b83756ba078d04f4af701e3f595e30d9c50 (patch)
tree8c11ca5d65aaa54c3a3ab2fd5b1db59110a0621f /src/leap/mail/constants.py
parent4067ccbb9a9e56df0d19063dcd329d33dcb9e17b (diff)
cleanup imap implementation
Diffstat (limited to 'src/leap/mail/constants.py')
-rw-r--r--src/leap/mail/constants.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/leap/mail/constants.py b/src/leap/mail/constants.py
index bf1db7f..d76e652 100644
--- a/src/leap/mail/constants.py
+++ b/src/leap/mail/constants.py
@@ -36,3 +36,17 @@ HDOCID_RE = "H\-[0-9a-fA-F]+"
CDOCID = "C-{phash}"
CDOCID_RE = "C\-[0-9a-fA-F]+"
+
+
+class MessageFlags(object):
+ """
+ Flags used in Message and Mailbox.
+ """
+ SEEN_FLAG = "\\Seen"
+ RECENT_FLAG = "\\Recent"
+ ANSWERED_FLAG = "\\Answered"
+ FLAGGED_FLAG = "\\Flagged" # yo dawg
+ DELETED_FLAG = "\\Deleted"
+ DRAFT_FLAG = "\\Draft"
+ NOSELECT_FLAG = "\\Noselect"
+ LIST_FLAG = "List" # is this OK? (no \. ie, no system flag)