Don't encode emails with base64/qp
|Reported by:||phr||Owned by:||nobody|
|Cc:||petr.hroudny@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
#3472 introduced a patch, which replaces base64 encoding with quoted-printable.
Anyway, there's even better way to do get rid of unnecessary encoding:
from email import Charset Charset.add_charset('utf-8',Charset.SHORTEST,None,'utf-8')
The above will set Content-Transfer-Encoding to 7bit or 8bit as needed - exactly as Mutt or Thunderbird do
and completely solve the problem even for non-latin characters.
Change History (20)
comment:8 Changed 7 years ago by
|Owner:||changed from gisle to nobody|
|Patch needs improvement:||set|