Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 644886

Summary: mail-client/mailx-8.1.2.20160123: breaks ancient uuencode attachment possibility
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal CC: net-mail+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2018-01-17 20:44:01 UTC
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 ?
Comment 1 Sylvain CANOINE 2018-05-06 10:37:29 UTC
mail-client/mailx-8.1.2.20160123 is stable now (https://bugs.gentoo.org/533208). Is there a workaround ?
Comment 2 Toralf Förster gentoo-dev 2018-05-06 10:51:31 UTC
(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.