Shea Gray wrote:
<> # do i need some Vicodin (body)?
<> :0B
<> * .*[Vv][1ilI\|][Cc][O0o][Dd][1ilI\|][Nn].*
<> | formail -a "Spam-Rule: Vicodin (body)" >> /var/mail/prespam
Unless you turn on the case sensitivity flag, which you have not,
"[Vv]" (etc.) is redundant. So is the initial ".*" -- use that when
you are anchoring against the beginning of the line, or with some
fixed text, such as "^Subject:.*"
:0 B
* [v(\\/)][1il\|][c\(][0o]d[1il\|]n
| formail -a "Spam-Rule: Vicodin (body)" >> /var/mail/prespam
is a better pattern.
Or do this:
VICODIN="[v(\\/)][1il\|][c\(][0o]d[1il\|]n"
:0 Bf
* $ $VICODIN
| formail -a "Spam-Rule: Vicodin (body)"
:0 f
* $ ^Subject:.*$VICODIN
| formail -a "Spam-Rule: Vicodin (subject)"
:0 :
* ^Spam-Rule: Vicodin
/var/mail/prespam
Although I would do the above in a way that delivers mail to a
spam-folder in the user's space, with the users privileges so they can
review the messages themeselves ... (See "DROPPRIVS" in the procmailrc
manpage)
Reto
--
R A Lichtensteiger rali(_at_)tifosi(_dot_)com
"O! Wanderers in the shadowed land
despair not! For though dark they stand,
all woods there be must end at last ..."
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail