From f60afac61959b9fe3bf7412e9a72f0db6b70f3b5 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 26 Feb 2018 09:59:07 -0800 Subject: fix sending encrypted messages in py3k --- alot/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/helper.py') 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' -- cgit v1.2.3