From af552318d44de3579d9b168d8cd9ad18a443d733 Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Wed, 13 Sep 2017 12:44:07 -0400 Subject: [feat] Add 7bit to the list of supported encodings This is required for Nylas to be able to send emails though bitmask. --- src/leap/bitmask/mail/rfc3156.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/leap/bitmask/mail/rfc3156.py b/src/leap/bitmask/mail/rfc3156.py index 7f719f63..3b28b4eb 100644 --- a/src/leap/bitmask/mail/rfc3156.py +++ b/src/leap/bitmask/mail/rfc3156.py @@ -157,7 +157,8 @@ def encode_base64(msg): # for multipart attachments (eg. 7bit or 8bit encoded attachments). For # now, if content is already encoded as base64 or if it is encoded with # some unknown encoding, we just pass. - if encoding in [None, 'quoted-printable', 'x-uuencode', 'uue', 'x-uue']: + if encoding in [None, 'quoted-printable', 'x-uuencode', + 'uue', 'x-uue', '7bit']: orig = msg.get_payload(decode=True) encdata = _bencode(orig) msg.set_payload(encdata) -- cgit v1.2.3