Public bug reported: Upgrade from Ubuntu server v16.04 to v18.04 made our group mail script to fail. "mail -a" is not working like before, failing with:
"mail: Errors parsing message" Problem is located at parsing "To:" field as additional parameter, which has been working before upgrade of Ubuntu version. Sample bash code: mail_it() { echo "$data" | mail \ -a From:"$new_from" \ -a Return-Path:"$new_returnpath" \ -a Reply-To:"$new_returnpath" \ -a Subject:"$new_subject" \ -a Message-ID:"$new_messageid" \ -a MIME-Version:"$mimeversion" \ -a Content-Type:"$contenttype" \ -a Content-Language:"$contentlanguage" \ -a Content-Transfer-Encoding:"$contenttransferencoding" \ -a Auto-Submitted:"$autosub" \ -a To:"$new_to" } That fails with long email address at "To:" field like this: John Developer <j...@example.com> while it still works with short address j...@example.com mail --version mail (GNU Mailutils) 3.4 Copyright © 2007-2017 Free Software Foundation, inc. Lisenssi GPLv3+: GNU GPL versio 3 tai myöhäisempi <http://gnu.org/licenses/gpl.html> ** Affects: mailutils (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1912228 Title: mail "-a" not accepting long "To:" field after o/s upgrade To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mailutils/+bug/1912228/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs