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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

metamail - how to call it automatically to save the file

Status
Not open for further replies.

pho01

Programmer
Mar 17, 2003
218
0
0
US
does anybody out there have good experience with metamail?

How do i decode an encoded email attachment without having to enter the name of the file but instead of take the default name or a specify name?

For example:
To write the attachment to a file, this is the syntax:
metamail -w < efile

then metamail will ask to enter the name for the attachment.

Since i have this command in a shell script, i try to ignore the question by using the command:

metamail -w < efile > localfile
this didnot work

or just
metamail < efile > localfile
still did not work

any idea?
 
Have you tried something like this ?
metamail -w localfile < efile

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