Operating System - HP-UX
1832996 Members
2356 Online
110048 Solutions
New Discussion

Re: Convert Incoming Mail question/problem

 
Alan Wyskowski
Frequent Advisor

Convert Incoming Mail question/problem

I have an application that mails out a report that is a graphic etc. When it mails to outlook etc. Everything looks great (.rtf format). I also had an email address sent to a unix server mailbox. PROBLEM: How do I convert this file back to binary/html or anything readable on my unix server (I have samba set up, and also a web-site on my unix server. I want report available via web-page and samba). The stuff comes like it's uuencoded (But I can't find a way to unencode it) with headers declaring it's an .rtf file. Does anyone know of any utility that can decode it back to some non-mailable format ?
I searched the internet, but the keywords I'm using are brining up too many misleading hits. Thanking you in advance.
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Convert Incoming Mail question/problem

You are not clear if the application runs in windows or HP-UX.

If it runs in HP-UX you can attach any file using the code in the script I'm attaching. This script requires minor modification, but it eliminates the need to uuencode the document.

This post is uselss if we're talking about a windows app.

There are some known problems with certain smtp relay servers that reject or mess up document attachments. If you use smtp relay and its symantec, make sure the smtp relay box is fully patched. Because of this issue I once wrote a perfectly good script(mailfile). It took four months to get it to production because the relay server messed it up.


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
Alan Wyskowski
Frequent Advisor

Re: Convert Incoming Mail question/problem

Thanks for the answer, I think I phrased my question badly. I'll try to do a better job.

There is a 3rd party application running on a Sun solaris box that counts web page hits and a feature of this package is to email out results in rich text format (it has a graph).

I setup 2 email destinations, one is to me personally to my outlook exchange server (I use outlook to view it and everything looks great).

The other destination is to a unix account on an HPUX 11 server. The email comes into the mailbox and has mime type headers for a .rtf file (and looks like it was uuencoded - but it wasn't). I want to write a program or find a utility to convert this data back into the .rtf format (binary file instead of text file) so I can post it on a web page or put it in my samba tree for viewing.