Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

metamail - save the attachment to a file

Status
Not open for further replies.

pho01

Programmer
Mar 17, 2003
218
US
Anybody using metamail program out there?

I use metamail to decode a MIME Base64 encoded message.
Using -w option, it asks for a filename to save, how do i turn this off and have it save the file without human interaction?

Thanks!
 
You may try something like this:
echo "/path/to/decodedfile" | metamail -w "/path/to/encodedfile"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top