summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/mail/imap/server.py')
-rw-r--r--src/leap/mail/imap/server.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/mail/imap/server.py b/src/leap/mail/imap/server.py
index 050521a..39f483f 100644
--- a/src/leap/mail/imap/server.py
+++ b/src/leap/mail/imap/server.py
@@ -158,11 +158,14 @@ class LEAPIMAPServer(imap4.IMAP4Server):
else:
mf = imap4.IMessageFile(msg, None)
if mf is not None:
- return imap4.FileProducer(mf.open()).beginProducing(self.transport)
- return imap4.MessageProducer(msg, None, self._scheduler).beginProducing(self.transport)
+ return imap4.FileProducer(
+ mf.open()).beginProducing(self.transport)
+ return imap4.MessageProducer(
+ msg, None, self._scheduler).beginProducing(self.transport)
else:
- _w('BODY ' + imap4.collapseNestedLists([imap4.getBodyStructure(msg)]))
+ _w('BODY ' +
+ imap4.collapseNestedLists([imap4.getBodyStructure(msg)]))
##################################################################
#