summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/src/leap/mail/incoming/service.py3
-rw-r--r--mail/src/leap/mail/incoming/tests/test_incoming_mail.py7
2 files changed, 4 insertions, 6 deletions
diff --git a/mail/src/leap/mail/incoming/service.py b/mail/src/leap/mail/incoming/service.py
index 57e00072..2e953a73 100644
--- a/mail/src/leap/mail/incoming/service.py
+++ b/mail/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/mail/src/leap/mail/incoming/tests/test_incoming_mail.py b/mail/src/leap/mail/incoming/tests/test_incoming_mail.py
index 798824a2..033799da 100644
--- a/mail/src/leap/mail/incoming/tests/test_incoming_mail.py
+++ b/mail/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,