Created attachment 1356380 [details] Heirloom-mailx-12.5-23_mail body became an attachment Description of problem: I was on Fedora 26 before. After upgraded to Fedora 27, my daily log mail become malformed: * I specified multiple mail addresses in mail to and mail cc, only one is remained. Weird thing is: the mail is delivered to all recipients. * And the only one mail address contains only display name, the address is missing - My mail addresses looks like the following: "刘研<liu.yan>,接收人2<recipient2>,接收人3<recipient3>" * And the mail body became an attachment. I can saw the 'Content-Type' became to 'application/octet-stream' instead of 'text/plain' in the mail source code Version-Release number of selected component (if applicable): 12.5-23.fc27 How reproducible: Always Steps to Reproduce: 1. mail_subject="FileBackup01 4.13.12-300.fc27.x86_64 2017-11-20 [数量=20453, 大小=6.56GB, 耗时=23.2分钟]" mail_from="文件同步/备份01<NO_REPLY>" mail_to="刘研<liu.yan>,接收人2<recipient2>,接收人3<recipient3>" mail_cc="刘研<liu.yan>,接收人2<recipient2>,接收人3<recipient3>" mail_smtp_server=A.B.C.D # change it to your SMTP server host/IP # change this to an rsync output log file name, with Chinese characters in it rsync_log_file="/path/to/rsync-output-log.txt" # change this to a PNG file name mail_attachment1="/path/to/png-file.png" mailx -S sendcharsets=utf-8 -S from="$mail_from" -S smtp=$mail_smtp_server \ -s "$mail_subject" \ -a "$mail_attachment1" \ -c "$mail_cc" \ "$mail_to" < "$rsync_log_file" Actual results: * only one recipient remained in 'To' and 'Cc' header. however, mail are delivered to all recipients (see 'Delivered-to' header). * mail address is missing, only display name remained * mail body either became an attachment or mixed with mail headers (see the screenshots) Expected results: Additional info: Downgrade to 12.5-22.fc27 works.
Created attachment 1356381 [details] Heirloom-mailx-12.5-23_mail body is mixed with mail headers This one is reproduced by issue the following command (replace smtp and domain.tld respectively) echo test测试 | mailx -S sendcharsets=utf-8 -S from="测试<NO_Reply>" -S smtp=A.B.C.D -s "邮件主题测试" -c "刘研<liu.yan>,刘研<liu.yan>" "刘研<liu.yan>,刘研<liu.yan>"
Sorry, 'mail body become to attachment' issue is caused by the output of 'iostat' command of Fedora 27: There's are some 0x00 characters and other ANSI escape sequence characters in the output of 'iostat'. Mail address broken issue still exists.
Thanks for repoting this, fixed. Commit: https://src.fedoraproject.org/rpms/mailx/c/bb2d5aeede258b35d8fb12aef6297d55085454ac
mailx-12.5-24.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2c5dea20e8
mailx-12.5-24.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e478e56990
mailx-12.5-24.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a82fe967af
(In reply to Nikola Forró from comment #3) > Thanks for repoting this, fixed. > > Commit: > https://src.fedoraproject.org/rpms/mailx/c/ > bb2d5aeede258b35d8fb12aef6297d55085454ac Thanks for the fix. Mail address is not broken now. However, if the subject contains multi-bytes characters, there will be a blank line after 'Subject: ' line, which separated headers into two parts, like the situation in the second screenshot. There's only one white space in the blank line.
Yes, you are right. While IMHO technically it's not incorrect (with respect to RFC 2047), it should be fixed.
mailx-12.5-24.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e478e56990
mailx-12.5-24.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2c5dea20e8
mailx-12.5-24.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a82fe967af
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
mailx-12.5-24.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
mailx-12.5-24.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
mailx-12.5-24.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
Fixed the blank line issue with base64 encoded words, and also fixed multi-byte encoded line-folding with quoted-printable encoded words. Commit: https://src.fedoraproject.org/rpms/mailx/c/afc99ef4b901a68d3e23dd50e699076654e69922
mailx-12.5-25.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-4250b6f593
mailx-12.5-25.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8a59412e76
mailx-12.5-25.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8a59412e76
mailx-12.5-25.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-4250b6f593
mailx-12.5-25.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
mailx-12.5-25.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.