Hi
This is something I would like to implement using procmail. I would like to
read the X-Spam-Score value and compare that value against some predefined
value. Basically what I am trying to implement is to filter Mails based on
X-Spam-Score value. I belive someone has done that before.
Only thing I am not sure is how to do is
1. return value from an external script and save it in procmail variable.
2. Numerica test such as if ( x > 2)
my ~.procmail.rc
DIR="~bikrant/Maildir/"
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR/tmp
:0fw
| /usr/local/bin/getScore #i can call script but how to read return value??
:0:
* if [ $ScoreRead >= $MinScore ] #how to implement it in procmail ?
${DIR}.SPAM/
:0:
* ^Subject:.gadha
spam
:0:
*
new
regards,
Bikrant
____________________________________________________________
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