首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >什么是sendmail的uuencode的MIME?

什么是sendmail的uuencode的MIME?
EN

Unix & Linux用户
提问于 2010-10-13 23:56:07
回答 3查看 3.3K关注 0票数 6

例如,我有我想通过sendmail发送的文件,但是接收邮箱(用于将图片发布到我的博客)将不接受uuencode文件a la

$uuencode file | sendmail user@domain

我猜它会接受哑剧的。那么我可以用什么命令来代替呢?

EN

回答 3

Unix & Linux用户

回答已采纳

发布于 2010-11-02 21:20:38

我最幸运的是用Perl编写的mime-construct。它几乎完成了uuencode所做的一切,而且是可持续的,这正是我所需要的。(不,我不是在寻找像mutt这样的MTA . msmtp是我所需要的,非常感谢。)

对有兴趣的人来说,你可以用这样的方法来称呼它

代码语言:javascript
复制
$mime-construct --output --to "addy@domain.suffix" --file-attach "a.jpg"

它将大量随机的gobbledygook输出到stdout,就像如果您没有将其输送到其他地方的话,uuencode也会这样做。

票数 2
EN

Unix & Linux用户

发布于 2010-10-14 03:23:25

您需要元数据包中的拟态码 ..。Debian有一些包装信息,但是这个包是基于古老的Bellcore代码的。

但是,如果您只是试图发送邮件,您可能会考虑使用杂种狗;我认为它可以模仿命令行中的附件。

票数 4
EN

Unix & Linux用户

发布于 2018-05-28 14:01:22

曼昆特

MIME (多用途因特网邮件扩展)规范RFC 1521和后继者)定义了一种主要由可打印的ASCII字符组成的文本编码机制,但该机制可能包含字符(例如,ISO 8859拉丁语字符集中的重音字母),这些字符不能编码为7位ASCII或不可打印字符,这可能会混淆邮件传输代理。

代码语言:javascript
复制
   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.
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/3088

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档