05-06-2010 03:43 PM
I sent a MS Outlook email with several TEXT attachment files to a HPUX 11.23 server. How to extract/save these attachmenet files to /home/oracle folder? Should I use "mail" command? Can you please help?
Solved! Go to Solution.
05-06-2010 07:10 PM
> files [...]
Normally, this would mean that you have a
MIME e-mail message.
I don't get e-mail on an HP-UX system so I
know nothing, but for interactive use, I'd
expect an e-mail-capable Web browser to be
able to handle a MIME message. Or any other
reasonably modern e-mail client program,
like, say, "elm". For non-interactive use,
I'd look into a program like "mpack"
(specifically, its "munpack" component).
05-06-2010 11:37 PM
Do you have thunderbird installed? Use it directly or you could use mailx to save the message in the thunderbird folder then use thunderbird to do fancy stuff.
05-07-2010 12:52 AM
Others already gave you some pointers.
More possibilities (because Unix
is very flexible):
a) Procmail recipes. Example in
| munpack -q -C ~oracle/files/
c) Perl scripts that use MIME::Parser.
One of them is here:
e) And another Perl script - unmime:
f) Write mutt filter. For example,
save this into muttrc:
# macro to save all picture attachments
set pipe_decode = no
macro index A "| munpack -C ~oracle/mydir\n"
macro pager A "| munpack -C ~oracle/mydir\n"
Then, when you select a message in index
mode or pager mode, you can hit "A" and it
will save all attachments to ~oracle/mydir.
It has been a long time since I last
had mailboxes on Unix servers (Linux excluded), so maybe there are other options
05-07-2010 04:57 AM
I will try the solutions you provided. Hope they are easy to use :-)
HP CE suggests mutt:Here is a ported version for HP-UX:
Have a great weekend.