diff options
author | Kali Kaneko <kali@leap.se> | 2015-02-26 13:28:45 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-03-03 14:27:03 -0400 |
commit | fac71359f77d5649cf0324f7cd9bfdcf13cb120d (patch) | |
tree | 885ac5a2009bc354a44209c23b3bd5f3ee7a13bf /src/leap/mail/imap | |
parent | 63a252fb5dadb8b57212ea6d5e09737ea22d470f (diff) |
pass date explicitely, fix partial_append test
it is interpreted as "tags" otherwise.
Diffstat (limited to 'src/leap/mail/imap')
-rw-r--r-- | src/leap/mail/imap/mailbox.py | 2 | ||||
-rw-r--r-- | src/leap/mail/imap/tests/test_imap.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py index c501614..2653ae4 100644 --- a/src/leap/mail/imap/mailbox.py +++ b/src/leap/mail/imap/mailbox.py @@ -352,7 +352,7 @@ class IMAPMailbox(object): # extension or patching imap server to support pipelining. # TODO add notify_new as a callback here... - return self.collection.add_msg(message, flags, date, + return self.collection.add_msg(message, flags, date=date, notify_just_mdoc=True) def notify_new(self, *args): diff --git a/src/leap/mail/imap/tests/test_imap.py b/src/leap/mail/imap/tests/test_imap.py index 67a24cd..738a674 100644 --- a/src/leap/mail/imap/tests/test_imap.py +++ b/src/leap/mail/imap/tests/test_imap.py @@ -1044,6 +1044,7 @@ class LEAPIMAP4ServerTestCase(IMAP4HelperMixin): self._cbTestPartialAppend, infile) def _cbTestPartialAppend(self, fetched, infile): + fetched = list(fetched) self.assertTrue(len(fetched) == 1) self.assertTrue(len(fetched[0]) == 2) uid, msg = fetched[0] |