Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using mailx to save attachments

807559Jul 1 2009 — edited Oct 29 2009
Hi,

I need to use mailx to save attachments sent from outlook. Can anybody help me?

When I read the mail I can see the encoded txt (among other things) which starts with:

</BODY>
</HTML>
------_=_NextPart_002_01C9F9E0.142F0AAF--

------_=_NextPart_001_01C9F9E0.142F0AAF
Content-Type: image/jpeg;
name="file.JPG"
Content-Transfer-Encoding: base64
Content-Description: file.JPG
Content-Disposition: attachment;
filename="file.JPG"

So I guess its a mime base64 encoded file but don't know how to unencode and save to a file?

Is anybody able to help?

Many thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2009
Added on Jul 1 2009
3 comments
847 views