summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Fondrie-Teitler <simonft@riseup.net>2017-09-13 12:44:07 -0400
committerSimon Fondrie-Teitler <simonft@riseup.net>2017-09-15 17:34:26 -0400
commitaf552318d44de3579d9b168d8cd9ad18a443d733 (patch)
tree871a93ca4c849b45f6a1d6105f2e6461277cce68 /src
parent6173c99fa3b705814ade642ea4c900b8421283dc (diff)
[feat] Add 7bit to the list of supported encodings
This is required for Nylas to be able to send emails though bitmask.
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/mail/rfc3156.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/mail/rfc3156.py b/src/leap/bitmask/mail/rfc3156.py
index 7f719f6..3b28b4e 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)