Operating System - HP-UX
1752761 Members
5081 Online
108789 Solutions
New Discussion юеВ

Decoding Mime on email receipt

 
David Rodman
Frequent Advisor

Decoding Mime on email receipt

I have a need to decode attachments and sort them into bins for automated processing... Does HP have any native tool or do I need a third party tool like metamail or mpack? If so what does the community recommend?

The plan is to pipe the messages through a decoder from the . forward file. Any better ideas?
2 REPLIES 2
Dan Hetzel
Honored Contributor

Re: Decoding Mime on email receipt

Hi,

Have a look at UUDeview:
http://www.informatik.uni-frankfurt.de/~fp/uudeview/

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Ray Evans
Advisor

Re: Decoding Mime on email receipt

Below is an extract of a script we use to process mail attachments. These come in as mime encoded msg's.

I am in the process of working with uudeview that Bill Hassel recommends due to it handling base64 encoding.

rje
+++++++++++++++++++++++++++++++
wdir="/var/mail"
/usr/bin/mailx >/tmp/msg_log.${LOGNAME} 2>&1 <<-!
quit
!
cd /comp/orders/upload
# Actuall work is performed here:
while [ -s "${wdir}/${LOGNAME}" ]
do
/usr/bin/mailx >>/tmp/msg_log.${LOGNAME} 2>&1 <<-!
pipe 1 /usr/local/bin/munpack
save 1 mbox.${LOGNAME}
Reply 1
Received file for processing `date`.
delete 1
quit
!
#Send notification on run
cat /tmp/msg_log.${LOGNAME}| /usr/bin/mailx -s "Text Files Extraction" user1,user2 >/dev/null 2>&1
chown comp *.txt *.TXT >/dev/null 2>&1
done