https://bugzilla.novell.com/show_bug.cgi?id=827010 https://bugzilla.novell.com/show_bug.cgi?id=827010#c0 Summary: mailx does not set correct mime types Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bastian@bastian-friedrich.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 When using "mailx" to send various file types, e.g. gif or jpeg, the files are sent as "application/octet-stream" instead of "image/<whatever>". The problem does NOT occur for mime types such as text/html. Reproducible: Always Steps to Reproduce: 1. mailx -a my-image.gif -s 'GIF test' your@address.com < /dev/null 2. View mail source after receiving Actual Results: Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Expected Results: Content-Type: image/gif Content-Transfer-Encoding: base64 The problem did NOT occur in OpenSUSE 12.1 and was introduced with patch "mailx-12.5-mime.dif" in OpenSUSE 12.2. The file mime type is determined correctly, but the (new) code resets it to octet-stream again: ------------- + if (isclean & MIME_LATIN) { + tcs = value("charset"); + if (tcs == NULL && wantcharset && wantcharset != (char *)-1) + tcs = wantcharset; + } + if (tcs == NULL) { + contenttype = "application/octet-stream"; + charset = NULL; + convert = CONV_TOB64; ------------- The problem also goes away when calling charset=utf-8 mailx -a my-image.gif -s 'GIF test' your@address.com < /dev/null -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.