* Holger Wahlen <H(_dot_)Wahlen(_at_)gmx(_dot_)de> [09-Wed-01 11:59 -0700]:
Walter Werner wrote:
:0
* ^Subject.*[Ss][Ee][Xx]*
${MAILDIR}/sex
and it appears to be matching things I did not expect, here
is the output from the log, can someone explain what I've
done wrong.
...
procmail: Match on "^Subject.*[Ss][Ee][Xx]*"
...
Subject: Re: copies of messages sent
A "*" in a regular expression doesn't mean "anything", it means "any
amount (including zero) of the preceding item", therefore you have a
match: "sent" contains an "s", an "e", and zero "x"s. Drop the "*" at
the end of your condition, and it should work.
[...]
i think the purpose was to match Sex or sEX anywhere, so
perhaps a better thing to do would be to add a '.' before
the last '*' as opposed to dropping the '*' altogether ?
denis
--
// mailto: Denis Perelyubskiy <denisp(_at_)CS(_dot_)UCLA(_dot_)EDU>
// icq : 12359698
// PGP : http://www.cs.ucla.edu/~denisp/files/pgp.asc
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail