summaryrefslogtreecommitdiff
path: root/src/leap/mail/mailbox_indexer.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-06 02:19:02 -0400
committerKali Kaneko <kali@leap.se>2015-01-21 15:07:19 -0400
commit1b457bbe0eefa12d3e75b58247b53cc62aecc356 (patch)
tree0c30759a568602b6c93d9c1690f3a366e21b7b01 /src/leap/mail/mailbox_indexer.py
parent751ace7534280187ecc83efb32e0cf9e18ac5bb2 (diff)
tests for mail.mail module: Account
Diffstat (limited to 'src/leap/mail/mailbox_indexer.py')
-rw-r--r--src/leap/mail/mailbox_indexer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/mailbox_indexer.py b/src/leap/mail/mailbox_indexer.py
index 1ceaec0..e5b813f 100644
--- a/src/leap/mail/mailbox_indexer.py
+++ b/src/leap/mail/mailbox_indexer.py
@@ -256,7 +256,7 @@ class MailboxIndexer(object):
def increment(result):
uid = _maybe_first_query_item(result)
if uid is None:
- return None
+ return 1
return uid + 1
sql = ("SELECT MAX(rowid) FROM {preffix}{name} "