Operating System - HP-UX
1751932 Members
4934 Online
108783 Solutions
New Discussion юеВ

Re: How to extract/save an email attachment in HPUX 11.23?

 
SOLVED
Go to solution
Jan Shu
Regular Advisor

How to extract/save an email attachment in HPUX 11.23?

Hi All,

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?

Thank you.

Regards,
Jan Shu
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: How to extract/save an email attachment in HPUX 11.23?

> [...] email with several TEXT attachment
> 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).
Dennis Handly
Acclaimed Contributor

Re: How to extract/save an email attachment in HPUX 11.23?

>How to extract/save these attachment files to /home/oracle folder?

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.
VK2COT
Honored Contributor
Solution

Re: How to extract/save an email attachment in HPUX 11.23?

Hello,

Others already gave you some pointers.

More possibilities (because Unix
is very flexible):

a) Procmail recipes. Example in
.procmailrc:

:0 c
*
| munpack -q -C ~oracle/files/

b) ripMIME:

http://www.pldaniels.com/ripmime/

c) Perl scripts that use MIME::Parser.
One of them is here:

http://zombiechow.com/lookatme.txt

d) Mimedump:

http://www.cpan.org/authors/id/E/EL/ELIJAH/mimedump

e) And another Perl script - unmime:

http://tek-tips.com/faqs.cfm?fid=4138

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
too.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Jan Shu
Regular Advisor

Re: How to extract/save an email attachment in HPUX 11.23?

Dear All, Thank you for your helpful information.

Dear VK2COT,
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:
http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.20/

Have a great weekend.

Best Regards,
Jan