How can I copy attachment from all mails to disk (/opt/copy).
I tried the following .procmailrc but it saves all mail not only the attachment:
SHELL=/bin/sh
PATH="/usr/local/bin:/usr/bin:/usr/local/sbin:/bin:/sbin:/usr/sbin"
PMDIR=$HOME/.procmail
# calea unde vreau sa copiez atasamentul
CALE=/opt/tsdata/comenzi_de_la_statii
# where should procmail log to (you can later run 'mailstat
$PMDIR/log' to get stats on what procmail did)
LOGFILE=$PMDIR/log
# what do we write to the log (default is everything)
LOGABSTRACT=all
# use verbose logging (useful for debug, otherwise it's way to much info)
VERBOSE=no
:0 HB
* ^To:omv(_dot_)*\(_at_)omvro\(_dot_)ro
* ^Content-Disposition: attachment;
*filename=".*\.(cmx)"
$CALE
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail