-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have the following in my procmailrc. 1 out 10 times it does not
work. That is an e-mail containing 1 of the search items does not
get caught and sent to the junk mailbox.
However, if I resend the email, the next time the email is caught and
sent to the junk mailbox. I got the following from the faq and other
procmail web sites.
Any help on why it fails? I can post the entire .procmailrc if
needed.
SUBJ_=`formail -xSubject: \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
#:0B is search entire body, should be case insentive unless using :0D
# | is an OR; \ means continue on next line
# Junk HTML mails
:0B
* (<body)|\
(</body)|\
(<html)|\
(</html)|\
(href=)
{
:0 fwh
| formail -I"Subject: HTML Mail ::: ${SUBJ_}"
:0:
${JUNK}
}
...
Sample email :
<html>
<body>
</body>
</html>
- --
^^^ Kurt
There is no good nor evil; there is only power.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/NyD50cAvx3ELfKARAhNTAKCXO4LBQxFWd0Kra1+rC/p4PVRhigCeOj00
/pdTzjUEYUb7DwSxisRO4BY=
=/gDl
-----END PGP SIGNATURE-----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail