[ale] using uuencode to create a viewable email attachment

Geoffrey lists at serioustechnology.com
Mon Jan 18 07:58:51 EST 2010


Brian W. Neu wrote:
> Thanks Geoffrey & James for the help, though I had to come up with an
> alternative.  Mac OS X is a great gui, but the command line leaves a lot
> to be desired.
> 
> I had to install fink, to install mutt, which didn't work until I
> created a symlink in /sw/lib of libintl.1.dylib -> libintl.dylib .
> 
> Then I was able to
>   /sw/bin/mutt -a testfile.txt -s "mutt test" user at email.com < testfile.txt
> 
> The version of mail & mailx on this OS 10.5 system didn't allow for "-a"
> as an option.

mutt has a -a 'attachment' option as well.

Glad you got it working.

> 
> 
> On 1/16/2010 5:18 PM, James Sumners wrote:
>> Give this a shot (adapting as necessary):
>>
>> #!/bin/bash
>> # *snip*
>> /usr/bin/uuencode /tmp/${x}.zip ${x}.zip > /tmp/zipmail.attach
>> cat /home/user/${x} /tmp/zipmail.attach > /tmp/zipmail.eml
>> /usr/bin/mailx -s "${subject}" -r "${from}" -c "${carboncopy}" -b
>> "${bcc}" "${to}" < /tmp/zipmail.eml
>> # *snip*
>>
>> On Sat, Jan 16, 2010 at 2:29 PM, Brian W. Neu <ale at advancedopen.com> wrote:
>>   
>>> so I tried
>>>
>>> uuencode tester.sh tester.sh |mail -s "mail test" my at email.com
>>>            &
>>> uuencode -m tester.sh tester.sh |mail -s "mail base64 test" my at email.com
>>>
>>> Both open in Thunderbird as content of the email body and not an
>>> attachment such as:
>>>
>>> begin-base64 750 tester
>>> IyEvYmluL2Jhc2gKIy91c3IvbG9jYWwvYmluL3JzeW5jIC1hTkhBWHggLS1wcm90ZWN0LWFyZ3Mg
>>> LS1maWxlZmxhZ3MgLS1mb3JjZS1jaGFuZ2UgLS1yc3luYy1wYXRoPSIvdXNyL2xvY2FsL2Jpbi9y
>>> -blah,blah,blah-
>>>
>>>
>>> I've tried mailx, and using echo prior to the uuencode out put, but the uuencoding still displays as the message body and not an attachment.
>>>
>>> Any suggestions?
>>>
>>> Oh, this is on an OS 10.5 iMac ;-) , but I have shown identical results on F12.
>>>     
>>
>>   
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> 


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson


More information about the Ale mailing list