On 2/21/06, Jake Di Toro <karrde+procmail(_at_)viluppo(_dot_)net> wrote:
On Tue, Feb 21, 2006 at 01:18:03PM -0300, Arturo Mardones wrote:
:0
* ^Tokatador(_at_)gmail(_dot_)com
This is working? I thought the macro was TO_ if you didn't want to
supply ^To:.*<addy here>, or did something get lost in the C&P?
{
BASEDIR=/home/catador
SAVE=`|/usr/bin/myscript $BASEDIR`
Simple fix here, loose the SAVE=``
| /usr/bin/myscript $BASEDIR
is sufficient.
mmmmhhh... i don't understand then... look this it's full procmailrc
PATH=/usr/bin:/usr/local/bin
LOGFILE=/var/log/procmail.log
:0
* ^To:(_dot_)*arturomardones(_at_)lxprod01(_dot_)coretech(_dot_)cl
#* ^Content-Type: *multipart/*
{
# Double safety
LOCKFILE="$MAILDIR"
BASEDIR="/var/mail/revN/attachments/%Y/%b/%d-%#"
PID=$$
# Do the dump and grab the output directory
SAVEDIR=`|/bin/nice mimedump -d -r -v -a -s -o mimedump-$PID.out $BASEDIR`
# Clear procmail lock
LOCKFILE=
# Put output directory into the headers
:0hfw
| formail -i "X-Attachment-Dir: $SAVEDIR"
}
and doesn't works... what's wrong ?? mimedump it's a perl script to
save attachments, on files and i put on /usr/bin with root like owner
but has 755 like permission and procmail.log say:
From katador(_at_)gmail(_dot_)com Tue Feb 21 14:09:41 2006
Subject: Fwd: hola
Folder: /var/mail/arturomardones 35854
thanks for any help :S
____________________________________________________________
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