STDIN discarded when using -A to attach a file

Bug #1838461 reported by Tim Bishop
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mailutils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

mail discards STDIN when using -A to attach a file. For example:

echo "My message body." | mail -s "Hello!" -A /some/data <email address hidden>

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

Tim Bishop (tdb)
summary: - STDIN discard when using -A to attach a file
+ STDIN discarded when using -A to attach a file
Revision history for this message
ergf34 (ergf34) wrote :

This is indeed still a bug, which i have tested in versions 3.5, 3.6 and 3.8.
I reported this bug again on https://savannah.gnu.org/bugs/index.php?54992

Only NOW it was fixed with the patch on this comment https://savannah.gnu.org/bugs/index.php?54992#comment9

This patch was applied to v3.8 and confirmed working.

Please can you apply this fix to the repo's of Ubuntu 18.04?

This is actually a major bug when attaching files.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mailutils (Ubuntu):
status: New → Confirmed
Revision history for this message
writer (onino) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.