Udi responded,
Thanks David, but, it dosen't work. If the message is bad
is dosen't reach the HOST line so, I get duplicat is the
good and junk folders:
Then it does work, with one bug.
:0cw
* reason to do any of this
{
:0bf
| lynx -stdin -dump
:0B
* viagra
{ EXITCODE=1 }
:0A:
viagraspam
HOST # if no "viagra", lose the lynxed clone
}
So far it's good. We have to change this:
:0a:
$DEFAULT
Let's try,
:0e
{ HOST }
:0A:
$DEFAULT
Or we can turn the logic the other way:
:0cw
* reason to do any of this
{
:0bf
| lynx -stdin -dump
EXITCODE=1
:0B
* viagra
{ EXITCODE=0 }
:0A:
viagraspam
HOST # lose the lynxed clone
}
:0a
{ HOST }
:0E:
$DEFAULT
Or we can punt; this has extra processes but, at least, no temporary file:
:0:
* reason to do any of this
* B ?? lynx -dump -stdin | grep -i viagra
viagraspam
# otherwise, procmail goes on with an unchanged message
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail