On Tue, 14 Dec 2004, 19:29 GMT-05 doug(_at_)safeport(_dot_)com wrote:
I am not quite sure how to write the recipe. can I just invoke the script with
something like?
:0:bad [flags]
* ? sh bad_mail
where bad_mail is a script that does something like
#!/bin/sh
spamfilter [options] ${MAILDIR}/bad
rm ${MAILDIR}/bad
touch ${MAILDIR}/bad
exit 0
SHELL = /bin/sh
:0
* ? path/to/your/bad_mail-script "$MAILDIR"
{
# execution of bad_mail-script was successfully
}
is probably what you want to do. In your bad_mail-script, you then
have to add
MAILDIR=$1
before using ${MAILDIR}.
rob.
____________________________________________________________
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