例如,我有我想通过sendmail发送的文件,但是接收邮箱(用于将图片发布到我的博客)将不接受uuencode文件a la
$uuencode file | sendmail user@domain
我猜它会接受哑剧的。那么我可以用什么命令来代替呢?
发布于 2010-11-02 21:20:38
我最幸运的是用Perl编写的mime-construct。它几乎完成了uuencode所做的一切,而且是可持续的,这正是我所需要的。(不,我不是在寻找像mutt这样的MTA . msmtp是我所需要的,非常感谢。)
对有兴趣的人来说,你可以用这样的方法来称呼它
$mime-construct --output --to "addy@domain.suffix" --file-attach "a.jpg"它将大量随机的gobbledygook输出到stdout,就像如果您没有将其输送到其他地方的话,uuencode也会这样做。
发布于 2010-10-14 03:23:25
您需要元数据包中的拟态码 ..。Debian有一些包装信息,但是这个包是基于古老的Bellcore代码的。
但是,如果您只是试图发送邮件,您可能会考虑使用杂种狗;我认为它可以模仿命令行中的附件。
发布于 2018-05-28 14:01:22
曼昆特
MIME (多用途因特网邮件扩展)规范RFC 1521和后继者)定义了一种主要由可打印的ASCII字符组成的文本编码机制,但该机制可能包含字符(例如,ISO 8859拉丁语字符集中的重音字母),这些字符不能编码为7位ASCII或不可打印字符,这可能会混淆邮件传输代理。
qprint is a command line utility which encodes and decodes files in this format. It can be used within a
pipeline as an encoding or decoding filter, and is most commonly used in this manner as part of an automated
mail processing system. With appropriate options, qprint can encode pure binary files, but it's a poor choice
since it may inflate the size of the file by as much as a factor of three. The Base64 MIME encoding is a bet-
ter choice for such data.https://unix.stackexchange.com/questions/3088
复制相似问题