简体   繁体   中英

Advantage of uuencode over mailx -a

当我们可以通过mail -amailx -a附加文件时, uuencode提供的特殊优势是什么。

Maybe you have a mailx with a -a option, but you're writing a script that should be portable to an older unix without it.

Maybe you just have an old script you're maintaining.

Maybe you're sneaking something past a mail filter that blocks MIME attachments.

Maybe you're actually making productive use of the permissions in the uuencode begin line.

Maybe you're sending to a recipient that finds uudecode easier than MIME parsing (such a recipient would probably be a unix-based bot of some sort).

It's maybe an easy to understand educational example for people learning about pipes.

In general, if you have no technical or personal connection to the pre-MIME mail system of the early 90's, nobody expects you to use uuencode, at least for mail purposes. You might still use it if you have to cram a file transfer through some other text interface, like a serial console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM