Re: uuencode is not working properly

Bob Proulx <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Petr Pisar wrote:
> Paturi, Sivakumar wrote:
> > uuencode power_numbers_dc.tcl power_numbers_dc.tcl | mail c_spatur
> >
> > I  received mail , but the file was not attached to the email, it was
> > copied as text in the email  and it was not readable formate.
>
> This not an issue with uuencode. The problem is in the `mail' tool. It
> used to send such input as an attachment. Now it sends it in the body.
> And that's how it should behave.

I don't recall any of the mail programs ever sending stdin as an
attachment.  The mailx command is a very old one and predates the MIME
standards.  Certainly the current behavior of putting stdin into the
body of the message is correct regardless.

> Read manual for your mail(1) to get know how to send attachments. E.g.
> if your mail comes from mailx, you can use `-a' option.

In mailx the -a option usually specifies additional headers.  (At
least in the BSD version.)  However that option isn't standardized.
Other versions may do something different.

  http://pubs.opengroup.org/onlinepubs/009695399/utilities/mailx.html

Bob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.