On Tue, 20 Mar 2007 16:36:06 Nahum Mizrahi wrote:
>
> I am looking for a command line program that can extract attachments
> from mail messages and save them as files.
> I tried mutt, tnef and fetchmail but could not get any of them to do the
> job.

The only program I know that can do that is metamail. It is a very old
program and it is not updated any more. it is included with the Debian
Sarge (see: http://packages.debian.org/stable/mail/metamail )
It has some limitation, and you'll have to wrap it with a script to do
what you want, but it DOES work (on any UNIX/Linux and even other OSs).

I've written several scripts that use metamail to extract the content
of received mail (even mail encrypted with GnuPG) and auto answer it.
(If you want an example send email to [EMAIL PROTECTED] ).

Ehud.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to