summaryrefslogtreecommitdiff
path: root/src/leap/mail
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/mail')
-rw-r--r--src/leap/mail/incoming/service.py3
-rw-r--r--src/leap/mail/incoming/tests/test_incoming_mail.py7
2 files changed, 4 insertions, 6 deletions
diff --git a/src/leap/mail/incoming/service.py b/src/leap/mail/incoming/service.py
index 57e0007..2e953a7 100644
--- a/src/leap/mail/incoming/service.py
+++ b/src/leap/mail/incoming/service.py
@@ -465,7 +465,8 @@ class IncomingMail(Service):
return d
def _add_decrypted_header(self, msg):
- msg.add_header(self.LEAP_ENCRYPTION_HEADER, self.LEAP_ENCRYPTION_DECRYPTED)
+ msg.add_header(self.LEAP_ENCRYPTION_HEADER,
+ self.LEAP_ENCRYPTION_DECRYPTED)
def _decrypt_multipart_encrypted_msg(self, msg, encoding, senderAddress):
"""
diff --git a/src/leap/mail/incoming/tests/test_incoming_mail.py b/src/leap/mail/incoming/tests/test_incoming_mail.py
index 798824a..033799d 100644
--- a/src/leap/mail/incoming/tests/test_incoming_mail.py
+++ b/src/leap/mail/incoming/tests/test_incoming_mail.py
@@ -182,7 +182,7 @@ subject: independence of cyberspace
self.headers = {}
def add_header(self, k, v):
- self.headers[k]=v
+ self.headers[k] = v
msg = DummyMsg()
self.fetcher._add_decrypted_header(msg)
@@ -217,10 +217,7 @@ subject: independence of cyberspace
def add_decrypted_header_called(_):
self.assertTrue(self.fetcher._add_decrypted_header.called,
- "There was some errors with decryption")
-
-
-
+ "There was some errors with decryption")
d = self._km.encrypt(
self.EMAIL,