summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-02-26 09:59:07 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-03-01 10:34:56 -0800
commitf60afac61959b9fe3bf7412e9a72f0db6b70f3b5 (patch)
tree331295dec6a4f35bdce427d989ffd2f95eb90526 /alot/helper.py
parent427fef2fdb4a13efd940e4ce2877332eeacb31e2 (diff)
fix sending encrypted messages in py3k
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 368a3e46..ba41986e 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -656,7 +656,7 @@ def email_as_bytes(mail):
# If we get here and the assert triggers it means that different
# parts of the email are encoded differently. I don't think we're
# likely to see that, but it's possible
- assert {'utf-8', 'ascii'}.issuperset(charsets), 'This needs different handling.'
+ assert {'utf-8', 'ascii', 'us-ascii'}.issuperset(charsets), charsets
charset = 'utf-8' # It's a strict super-set
else:
charset = 'utf-8'