summaryrefslogtreecommitdiff
path: root/src/leap
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
commita5c45803dfdc62f22db592d1e542fcbd07170a43 (patch)
tree13733a9e858bae54d7d3fc4cba84ec9e60101e03 /src/leap
parentfec92585f933b6ce9b8c2701a9e28a8b7490d32a (diff)
make last_uid a defaultdict
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mail/imap/memorystore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/imap/memorystore.py b/src/leap/mail/imap/memorystore.py
index 04e0af6..3f3cf83 100644
--- a/src/leap/mail/imap/memorystore.py
+++ b/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