Liste des Groupes | Revenir à cl python |
as expected. The non-UTF-8 text occurs when I doDo you still have access to `body` ? That would be the original message text? Otherwise maybe:
>
mail = EmailMessage()
mail.set_content(body, cte="quoted-printable")
...
>
if args.verbose:
print(mail)
>
which is presumably also correct.
>
The question is: What conversion is necessary in order to print the
EmailMessage object to the terminal, such that the quoted-printable
parts are turned (back) into UTF-8?
Les messages affichés proviennent d'usenet.