diff options
author | SATOH Fumiyasu <fumiyas@osstech.co.jp> | 2020-11-10 17:15:42 +0900 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2020-11-16 22:43:34 +0000 |
commit | 6ac16232de7c577c081f15759cab65fdef06ba55 (patch) | |
tree | 0fb6003bc3619bcef7b1ab9318dbcf928afdf75f /script | |
parent | 7bd040f60a070c037d2cbcebb01d5d9869475662 (diff) | |
download | samba-6ac16232de7c577c081f15759cab65fdef06ba55.tar.gz |
autobuild: Encode text/plain into base64 to wrap long-lines
MIMEText(text, 'plain', 'utf-8') encodes the text into
base64 and adds 'Content-Transfer-Encoding: base64' header.
Signed-off-by: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Nov 16 22:43:35 UTC 2020 on sn-devel-184
Diffstat (limited to 'script')
-rwxr-xr-x | script/autobuild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/autobuild.py b/script/autobuild.py index 24baa0fa9f2..a76309df8a2 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -1112,7 +1112,7 @@ def send_email(subject, text, log_tar): outer['From'] = options.email_from outer['Date'] = email.utils.formatdate(localtime=True) outer.preamble = 'Autobuild mails are now in MIME because we optionally attach the logs.\n' - outer.attach(MIMEText(text, 'plain')) + outer.attach(MIMEText(text, 'plain', 'utf-8')) if options.attach_logs: with open(log_tar, 'rb') as fp: msg = MIMEApplication(fp.read(), 'gzip', email.encoders.encode_base64) |