mailx를 사용하여 (내용을 바꾸는 대신) 파일을 올바르게 추가하는 방법은 무엇입니까?

mailx를 사용하여 (내용을 바꾸는 대신) 파일을 올바르게 추가하는 방법은 무엇입니까?

나는 사용하고있다

$ 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

데비안 브레이커스에서. 그러나 이메일 클라이언트(예: Thunderbird, Apple Mail 등)에서는 첨부된 이미지만 표시됩니다 text.아니요나타나다! 소스를 보면 다음과 같은 메시지가 보입니다.

--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
[...]

나는 놀았 --alternative지만 작동하는 옵션을 찾을 수 --content-type없습니다 .-M

관련 정보