sendmail 的 uuencode 的 MIME 等价物是什么?

ixt*_*lix 7 terminal pipe email sendmail

例如,我有要发送的文件,sendmail但接收邮箱(用于将图片发布到我的博客)不会接受uuencode文件

$uuencode file | sendmail user@domain

不过我猜它会接受 MIME。那么我可以使用什么命令呢?

ixt*_*lix 2

我最幸运的是用mime-constructPerl 编写的。它几乎可以完成所有uuencode功能,并且可以通过管道传输,这正是我所需要的。(不,我并不是在寻找诸如mutt...之类的 MTA msmtp,这就是我所需要的,非常感谢。)

对于感兴趣的人,您可以使用类似的名称来称呼它

$mime-construct --output --to "addy@domain.suffix" --file-attach "a.jpg"
Run Code Online (Sandbox Code Playgroud)

它会向 打印大量随机的官样文章stdout,就像uuencode您没有将其通过管道传输到其他地方一样。