With the stable mailx this workes: (echo -e "text1\ntext2\n"; echo "baz" | uuencode x.txt) | mail -s subject mail@domain But with the unstable Thunderbird doesn't longer recognize the atatchment, instead it shows the uuencoded text inline. Adding "-a" helps, eg.: (echo -e "text1\ntext2\n"; echo "baz" | uuencode x.txt) | mail -s subject mail@domain -a '' but that has the ugly side effect, that now the (unwanted) 3 SMTP-header lines are part of the body: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Is there any chance to suppress the 3 additional header lines ?
mail-client/mailx-8.1.2.20160123 is stable now (https://bugs.gentoo.org/533208). Is there a workaround ?
(In reply to Sylvain CANOINE from comment #1) a quick&dirty is to add -a "" to the mailx command line. This yields into 3 additional lines in the mail body but at least thunderbird here detects now those attachements again.