Public bug reported: mail discards STDIN when using -A to attach a file. For example:
echo "My message body." | mail -s "Hello!" -A /some/data someb...@example.com The file /some/data is attached, but the message body is discarded. This is at least broken on 18.04. Debian has fixed this bug and it has been fixed upstream. I expect their patch can be used: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918806#27 ** Affects: mailutils (Ubuntu) Importance: Undecided Status: New ** Summary changed: - STDIN discard when using -A to attach a file + STDIN discarded when using -A to attach a file -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1838461 Title: STDIN discarded when using -A to attach a file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mailutils/+bug/1838461/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs