diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-22 03:16:32 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:05:43 -0400 |
commit | 4c02942472be00486d04d854e987d6eda8c7df12 (patch) | |
tree | b4a7d95c3cadcccfdf4cee4eae9134b1e613e833 /src/leap/mail/imap/mailbox.py | |
parent | f8c07f66bfcd97e3ae7085071c1f1efbd80e0286 (diff) |
re-add support for basic multipart messages
Diffstat (limited to 'src/leap/mail/imap/mailbox.py')
-rw-r--r-- | src/leap/mail/imap/mailbox.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/mail/imap/mailbox.py b/src/leap/mail/imap/mailbox.py index 52f4dd5..045636e 100644 --- a/src/leap/mail/imap/mailbox.py +++ b/src/leap/mail/imap/mailbox.py @@ -540,7 +540,11 @@ class IMAPMailbox(object): d_msg = [] for msgid in msg_sequence: - d_msg.append(getmsg(msgid)) + # XXX We want cdocs because we "probably" are asked for the + # body. We should be smarted at do_FETCH and pass a parameter + # to this method in order not to prefetch cdocs if they're not + # going to be used. + d_msg.append(getmsg(msgid, get_cdocs=True)) d = defer.gatherResults(d_msg) d.addCallback(_get_imap_msg) |