Ansgar pushed to branch deploy at Debian FTP Team / dak
Commits:
1 changed file:
Changes:
... | ... | @@ -340,6 +340,12 @@ def send_mail(message, whitelists=None): |
340 | 340 | |
341 | 341 | msg = daklib.mail.parse_mail(message)
|
342 | 342 | |
343 | + # The incoming message might be UTF-8, but outgoing mail should
|
|
344 | + # use a legacy-compatible encoding. Set the content to the
|
|
345 | + # text to make sure this is the case.
|
|
346 | + # Note that this does not work with multipart messages.
|
|
347 | + msg.set_content(msg.get_payload(), cte="quoted-printable")
|
|
348 | + |
|
343 | 349 | # Check whether we're supposed to be sending mail
|
344 | 350 | call_sendmail = True
|
345 | 351 | if "Dinstall::Options::No-Mail" in Cnf and Cnf["Dinstall::Options::No-Mail"]:
|