summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/imap/messages.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/src/leap/mail/imap/messages.py b/mail/src/leap/mail/imap/messages.py
index 4e8e1a3..0356600 100644
--- a/mail/src/leap/mail/imap/messages.py
+++ b/mail/src/leap/mail/imap/messages.py
@@ -864,7 +864,7 @@ class MessageCollection(WithMsgFields, IndexedDB, MBoxParser):
else:
return False
- def add_msg(self, raw, subject=None, flags=None, date=None, uid=None,
+ def add_msg(self, raw, subject=None, flags=None, date=None,
notify_on_disk=False):
"""
Creates a new message document.
@@ -881,9 +881,6 @@ class MessageCollection(WithMsgFields, IndexedDB, MBoxParser):
:param date: the received date for the message
:type date: str
- :param uid: the message uid for this mailbox
- :type uid: int
-
:return: a deferred that will be fired with the message
uid when the adding succeed.
:rtype: deferred
@@ -933,6 +930,7 @@ class MessageCollection(WithMsgFields, IndexedDB, MBoxParser):
msg.setFlags((fields.DELETED_FLAG,), -1)
return
+ # XXX get FUCKING UID from autoincremental table
uid = self.memstore.increment_last_soledad_uid(self.mbox)
# We can say the observer that we're done at this point, but