Control: found 918806 3.5-2 On Wed 2019-01-09 14:16:09 +0000, Jason Davey wrote: > Command > =========== > echo "body text" | /usr/bin/mail -s "some subject" -A "somefile.csv" > m...@email.com
I can confirm that the same misbehavior happens when invoked as "mailx", fwiw. This is actually a data loss issue, because the body text sent on stdin is entirely discarded. As such, i'd consider even elevating this to a release-critical bug report. fwiw, if i try to be clever and get it to consider the incoming text by using: mailx --content-type=text/plain --attach-fd=0 -s 'some subject' -A somefile.csv m...@example.com then i end up with an extremely weird multipart/mixed structure: […] Content-Type: multipart/mixed; boundary="225007733-1552488518=:22450" Subject: this is a test To: <d...@fifthhorseman.net> X-Mailer: mail (GNU Mailutils 3.5) Message-Id: <20190313144838.daaf420...@fifthhorseman.net> Date: Wed, 13 Mar 2019 10:48:38 -0400 (EDT) From: Daniel Kahn Gillmor <d...@fifthhorseman.net> --225007733-1552488518=:22450 Content-Type: text/plain; charset=UTF-8 Content-Disposition: attachment Content-ID: <20190313104838.2245...@alice.fifthhorseman.net> Content-Transfer-Encoding: quoted-printable --225007733-1552488518=:22450 Content-Type: text/plain; charset=UTF-8 Content-Disposition: attachment Content-Transfer-Encoding: base64 Content-ID: <20190313104838.2245...@alice.fifthhorseman.net> bW9ua2V5IG1hbiB0ZXN0aW5nCg== --225007733-1552488518=:22450 Content-Type: text/plain; charset=UTF-8; name="hi.txt" Content-Disposition: attachment; filename="hi.txt" Content-Transfer-Encoding: base64 Content-ID: <20190313104838.2245...@alice.fifthhorseman.net> aGkK --225007733-1552488518=:22450-- Regards, --dkg