diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-11 01:39:43 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 11:39:48 -0400 |
commit | 5e96a249ab541cedcc79e4e60f46cd4a187e47fb (patch) | |
tree | 428799bd4dfc5c70eb9f357c09f68d2fdcff8316 /src/leap/mail/imap/mailbox.py | |
parent | 912873a939214bc805fb398bc5a2fe1949fe34d6 (diff) |
fix repeated recent flag
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r-- | src/leap/mail/imap/mailbox.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py index 018f88e..fa97512 100644 --- a/src/leap/mail/imap/mailbox.py +++ b/src/leap/mail/imap/mailbox.py @@ -854,12 +854,13 @@ class SoledadMailbox(WithMsgFields, MBoxParser): else: mbox = self.mbox uid_next = memstore.increment_last_soledad_uid(mbox) + new_fdoc[self.UID_KEY] = uid_next new_fdoc[self.MBOX_KEY] = mbox flags = list(new_fdoc[self.FLAGS_KEY]) flags.append(fields.RECENT_FLAG) - new_fdoc[self.FLAGS_KEY] = flags + new_fdoc[self.FLAGS_KEY] = tuple(set(flags)) # FIXME set recent! @@ -896,7 +897,8 @@ class SoledadMailbox(WithMsgFields, MBoxParser): dest_fdoc = memstore.get_fdoc_from_chash( fdoc_chash, self.mbox) - exist = dest_fdoc and not empty(dest_fdoc.content) + + exist = not empty(dest_fdoc) return exist, new_fdoc # convenience fun |