summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-10-11 23:36:56 +0200
committerKali Kaneko <kali@leap.se>2017-10-11 23:38:29 +0200
commit41ca921938aeddce782e6f829a601d996ffe6625 (patch)
treeb70c82add50eeb7cea94256d52f6e0b2938ca0bd
parent7ded13dafb6a29dcbbbabc32008685db49d42f77 (diff)
[bug] fix incorrect imap flags for mailboxes
for some reason the implementation was returning a list of default flags for every mailbox, that's incorrect according to the spec. we have the plan to implement special mailboxes soon, but for now I'm merging this as it's needed to get nylas prototype working. - Resolves: #9031
-rw-r--r--src/leap/bitmask/mail/imap/mailbox.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/leap/bitmask/mail/imap/mailbox.py b/src/leap/bitmask/mail/imap/mailbox.py
index 20b18761..de6c5484 100644
--- a/src/leap/bitmask/mail/imap/mailbox.py
+++ b/src/leap/bitmask/mail/imap/mailbox.py
@@ -44,10 +44,7 @@ from leap.bitmask.mail.imap.messages import IMAPMessage
# [ ] implement the rest of ISearchableMailbox
-INIT_FLAGS = (MessageFlags.SEEN_FLAG, MessageFlags.ANSWERED_FLAG,
- MessageFlags.FLAGGED_FLAG, MessageFlags.DELETED_FLAG,
- MessageFlags.DRAFT_FLAG, MessageFlags.RECENT_FLAG,
- MessageFlags.LIST_FLAG)
+INIT_FLAGS = (MessageFlags.RECENT_FLAG, MessageFlags.LIST_FLAG)
def make_collection_listener(mailbox):