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:
Content-Type: text/plain; charset="UTF-8"
Is there any chance to suppress the 3 additional header lines ?
mail-client/mailx-188.8.131.5260123 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
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.