How to extract/save an email attachment in HPUX 11.23? (294 Views)
Reply
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 1 of 5 (294 Views)
Accepted Solution

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
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,066
Registered: ‎02-23-2005
Message 2 of 5 (294 Views)

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).
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,757
Registered: ‎03-06-2006
Message 3 of 5 (294 Views)

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.
Please use plain text.
Honored Contributor
VK2COT
Posts: 921
Registered: ‎01-17-2006
Message 4 of 5 (294 Views)

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
Please use plain text.
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 5 of 5 (294 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation