On Tue, 2 Sep 2003, David W. Tamkin wrote:
Udi wrote,
Now, I have new strange problem: If the message do not has bad
words (viagra, pills...) the user will get the message twice.
One in lynx's dump format and the second is the original message.
Why the problem is strange? Because if I use the same procmailrc
from the command line, it works perfectly!
See what the logs say:
[...]
The attempt to unset HOST inside the braces should kill the filtered
version if it didn't get delivered to $MAILDIR/viagraspam.
The question is why it dosen't? And what really bother me is
the fact that I could not check it from the command line. I
added rule in the recipe to work only for me while I am running
testes. But, still it's A trouble!
You know what ... just try this compromise I posted before. If the
offending word is present, the original HTML version will be dropped
into the shunt folder, but otherwise the results should be the same:
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 | egrep -i '\<(viagra|sars|pill)'
viagraorsarsspam
Actually, it was like this, but I found that I need more
sophisticated search mechanism like procmail. Since I had
tried to leave the grep the problems were started.
Now, I'm trieng to set the DEFAULT=/dev/null somewhere...
yet, the results are bad (:-(
--Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail