New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How can I Forward System Mail With mail Program?
I have some base64 encoded messages or attachments on one of my servers in Mbox format that I need to read. The /usr/bin/mail (symlink to /usr/bin/bsd-mailx v8.1.2) command isn't rendering them, it's just base64 data. I don't know how to use mail command to save the attachments, or even fwd the messages.
How can I forward or save the attachments using /usr/bin/mail ??
Man page wasn't helpful, unless I overlooked something.
Thanked by 1n0my
Comments
Maybe the bread crumbs here will help...it should be possible to extract the attachments via a script, but unfortunately I don't know one off the top of my head.
http://stackoverflow.com/questions/1171070/extract-e-mail-attachments-on-unix
munpack did the trick, thank you.
mutt -f mailbox