summaryrefslogtreecommitdiff
path: root/mail/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-02-06 19:44:25 -0400
committerKali Kaneko <kali@leap.se>2014-02-17 11:37:04 -0400
commit144f9832c31b85d7a449c6cc6ef2625e84c32078 (patch)
treed7aaf11c8ab248d671e1a8a89b44f9947b416648 /mail/src
parent1d24adf5cd1a2dfe658677a947cfe3fa156592b0 (diff)
make last_uid a defaultdict
Diffstat (limited to 'mail/src')
-rw-r--r--mail/src/leap/mail/imap/memorystore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/memorystore.py b/mail/src/leap/mail/imap/memorystore.py
index 04e0af60..3f3cf83e 100644
--- a/mail/src/leap/mail/imap/memorystore.py
+++ b/mail/src/leap/mail/imap/memorystore.py
@@ -163,7 +163,7 @@ class MemoryStore(object):
{'mbox-a': 42,
'mbox-b': 23}
"""
- self._last_uid = {}
+ self._last_uid = defaultdict(lambda: 0)
"""
known-uids keeps a count of the uids that soledad knows for a given