From a434952822487aad5efa7fad12d278115de19fd9 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Fri, 20 Jan 2017 12:22:11 -0200 Subject: Remove unused parameter Signed-off-by: Ruben Pollan --- src/leap/bitmask/mail/incoming/service.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/leap/bitmask/mail') diff --git a/src/leap/bitmask/mail/incoming/service.py b/src/leap/bitmask/mail/incoming/service.py index 54064b84..d8528b10 100644 --- a/src/leap/bitmask/mail/incoming/service.py +++ b/src/leap/bitmask/mail/incoming/service.py @@ -459,8 +459,7 @@ class IncomingMail(Service): return decrmsg.as_string() if msg.get_content_type() == MULTIPART_ENCRYPTED: - d = self._decrypt_multipart_encrypted_msg( - msg, encoding, senderAddress) + d = self._decrypt_multipart_encrypted_msg(msg, senderAddress) elif msg.get_content_type() == MULTIPART_SIGNED: d = self._verify_signature_not_encrypted_msg(msg, senderAddress) else: @@ -479,14 +478,12 @@ class IncomingMail(Service): msg.add_header(self.LEAP_ENCRYPTION_HEADER, self.LEAP_ENCRYPTION_DECRYPTED) - def _decrypt_multipart_encrypted_msg(self, msg, encoding, senderAddress): + def _decrypt_multipart_encrypted_msg(self, msg, senderAddress): """ Decrypt a message with content-type 'multipart/encrypted'. :param msg: The original encrypted message. :type msg: Message - :param encoding: The encoding of the email message. - :type encoding: str :param senderAddress: The email address of the sender of the message. :type senderAddress: str -- cgit v1.2.3