I'm using procmail v3.14 and am trying to identify junkmail via body keywords.
My header identifying is working fine, but the body one isn't.
Variables:
FGREP=/bin/fgrep
SUBJECT=`/usr/local/bin/formail -x Subject:`
BODY='/usr/local/bin/formail -I ""'
REJECTS=$HOME/pass/header_rejects
BODY_REJECTS=$HOME/pass/body_rejects
where REJECTS and BODY_REJECTS point to lists of junkmail keywords
#This works fine:
:0E:
* ? (echo $SUBJECT | $FGREP -i -f $REJECTS)
#However this one NEVER matches.
:0E:
* ? (echo $BODY | $FGREP -i -f $BODY_REJECTS)
Please help. I've been at this for many hours without avail.
- Jeff