1834709 Members
2616 Online
110069 Solutions
New Discussion

Re: elm attachments

 
SOLVED
Go to solution
Craig Warnholtz
Occasional Advisor

elm attachments

On hp-ux 10.20 I send attachments using the following command:
uuencode file.txt file.txt|elm user@abc.com

This no longer works under hp-ux 11.0. The encoded attachment is placed into the body of the message!
Why does this no longer work? Do I need a patch for elm?

Thanks
Craig
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: elm attachments

You can work around that by adding the mime header ..
$ vi file.txt
==> add this line to at the top of the file ..
[include file.txt text/plain base64]

Then try this ..
$ elm user@abc.com < file.txt

It works for me when I send it to my yahoo account. I'm not sure if there's such patch for 11.x.
Craig Warnholtz
Occasional Advisor

Re: elm attachments

When I add this..
[include file.txt text/plain base64]

and try this ..
$ elm user@abc.com < file.txt

file.txt gets sent as an attachment and is included in the message body.

Why does the original method work for 10.20 but not for 11.0?

Steven E. Protter
Exalted Contributor
Solution

Re: elm attachments

Attached is a handy dandy script that should work. You may need or want to do a few mods but here its production.

elm patches are always good, but I don't like your current methodology.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Uday_S_Ankolekar
Honored Contributor

Re: elm attachments

File attachment using uuencode works well with 11.00.

instead of elm try using sendmail

uuencode filetobattached filename | sendmail email-id.

-USA..
Good Luck..
Craig Warnholtz
Occasional Advisor

Re: elm attachments

Thanks Steven, I switched to sendmail using some of the code from your script.

Much appreciated.
Craig