mail tool ignores body text from stdin if attachment is added
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mailutils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This is working:
echo "test - you should see this in mail body!" | mail -s "mail without attachment test" <email address hidden>
If I add an attachment the body is always empty:
echo "test - you should see this in mail body!" | mail --content-
I found an old bug for debian already reporting this but it should be fixed in
mailutils (1:3.5-3) unstable; urgency=medium
.
* Cherry-pick patch from upstream git to avoid discarding stdin when
mail is used to send email with attachments (closes: #918806).
https:/
So this looks like a regression.
The workaround from the debian bug report above using command option --mime is not working and still sending an empty mail body:
echo "test - you should see this in mail body!" | mail --mime --content-
I recognized the bug in Ubuntu 20.04
mailutils 1:3.7-2.1
and in current Ubuntu 20.10 with
mailutils 1:3.9-3.2
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: mailutils 1:3.7-2.1
ProcVersionSign
Uname: Linux 5.4.0-56-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Fri Jan 15 11:05:17 2021
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mailutils
UpgradeStatus: Upgraded to focal on 2020-05-22 (237 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.