Fix simple filter: pass policy to as_bytes()
Also: adjust expected test output because it's now Base64-encoded.
This commit is contained in:
parent
459779bea6
commit
518b823b5c
2 changed files with 2 additions and 2 deletions
|
@ -392,4 +392,4 @@ def deliver_message(raw_message: EmailMessage, from_address, to_addrs):
|
|||
|
||||
# Send out mail to recipients which are left
|
||||
LOG.debug("Sending the rest as text/plain")
|
||||
send(raw_message.as_string(), recipients_left)
|
||||
send(raw_message.as_bytes(policy=SMTPUTF8), recipients_left)
|
||||
|
|
|
@ -139,7 +139,7 @@ out: -----BEGIN PGP MESSAGE-----
|
|||
descr: HTML, cleartext
|
||||
to: carlos@disposlab
|
||||
in: test/msgin/html-utf8.msg
|
||||
out: <html>
|
||||
out: PGh0bWw+DQo8aGVhZD4NCjwvaGVhZD4NCjxib2R5Pg0KWkHFu8OTxYHEhiBHxJjFmkzEhCBKQcW5
|
||||
|
||||
[case-17]
|
||||
descr: HTML, PGP/MIME
|
||||
|
|
Loading…
Reference in a new issue