0

I am using

$ mailx -V
mailx (GNU Mailutils) 3.5
Copyright (C) 2007-2017 Free Software Foundation, inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ echo test | mailx -s Testmessage user -A /tmp/test.png

in Debian buster. However, the in e-mail client (such as Thunderbird, Apple Mail etc.) I only see the attached picture displayed; text does not show up! If I look at the message source, the message is there:

--385425503-1612411894=:25669
Content-Type: text/plain; charset=UTF-8
Content-Disposition: attachment
Content-Transfer-Encoding: 8bit
Content-ID: <20210204051134.25669.1@localhost>

test

--385425503-1612411894=:25669
Content-Type: application/octet-stream; name="test.png"
Content-Disposition: attachment; filename="/tmp/test.png"
Content-Transfer-Encoding: base64
Content-ID: <20210204051134.25669.1@localhost>

iVBORw0KGgoAAAANSUhEUgAABVYAAAK2CAYAAACl2sceAAAgAElEQVR4nOzdeXRUhcH/f9t6WtvH
[...]

I played with --alternative, --content-type and -M but could not find an option that works.

2
  • Isn't this a Thunderbird problem, if the message is there in the source? Feb 4 at 5:33
  • Nope, same is true for other clients. The issue is that the message is generated the wrong way. I hypothesize the reason is that both parts have the same header (` --385425503-1612411894=:25669`) but I don't know which is the reason I ask here. (Note: edited question)
    – divB
    Feb 4 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.