summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/mailbox.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-16 17:18:11 -0400
committerKali Kaneko <kali@leap.se>2014-01-16 17:18:11 -0400
commitae56191d2d6f2953bd49f43b9dedb322a7f0db8c (patch)
tree2cff3711577d3e98cbfe1098b811f60e66d0fa58 /src/leap/mail/imap/mailbox.py
parent61454c82de35778d27bcd1a2c89fe20ee3d5b142 (diff)
reset last uid on expunge
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r--src/leap/mail/imap/mailbox.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py
index 94070ac..86dac77 100644
--- a/src/leap/mail/imap/mailbox.py
+++ b/src/leap/mail/imap/mailbox.py
@@ -463,6 +463,7 @@ class SoledadMailbox(WithMsgFields, MBoxParser):
if not self.isWriteable():
raise imap4.ReadOnlyMailbox
d = self.messages.remove_all_deleted()
+ d.addCallback(self.messages.reset_last_uid)
d.addCallback(self._expunge_cb)
return d