LOGFILE=/tmp/p.log
LOG = "procmail $PROCMAIL_VERSION sees $# args: \$1 = '$1' \$2 = '$2'
"
into my /etc/procmailrc file, sent a message with procmail 3.21 with the
command line:
procmail-3.21 -Y -f guenther -a foo -a bar -d guenther <msg_file
and found that /tmp/p.log contained the line
procmail 3.21 sees 2 args: $1 = 'foo' $2 = 'bar'
This works fine as stated.
When mail is sent through sendmail 8.8.8, it says 0 args
I will try sendmail 8.12 tomorrow, maybe the new millenium
will have some benefits after all :)
MAILDIR = /var/log/spam
PMDIR = /var/log/spam
LOGFILE = /var/log/spam/log
LOG = "procmail $PROCMAIL_VERSION sees $# args: '$1' '$2' '$3' "
#----------------------------------------------------------------------
:0 hw
|/var/log/spam/proctest $0 $1 $2
Log:
By hand:
procmail 3.22 sees 2 args: 'foo' 'bar' '' From homer Mon Jul 8 23:44:17 2002
Folder: /var/log/spam/proctest procmail foo bar 91
From sendmail:
procmail 3.22 sees 0 args: '' '' '' From
root(_at_)fv3(_dot_)lightlink(_dot_)com Mon Jul 8 23:44:37 2002
Folder: /var/log/spam/proctest /usr/bin/procmail 469
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail