Karsten Bräckelmann a écrit :
If you want to enforce a non-word char preceding this, the \W is fine. However, the alternate anchor at the beginning of the string probably will be rather useless. From the fine docs [1], body rule definitions: "All HTML tags and line breaks will be removed before matching."
Actually I think (in that case) I don't need any of these \b or \W. The string I want to catch is pretty spam-explicit (spamplicit?). So I remove everything before the three backslashes and everything is fine.
I guess it pretty much depends on what you actually want to catch. You do have a spample to run your rule against, right? Also, do you really mean to match against the body (all textual parts), or do you mean to trigger on the Subject only (which is part of a body rule, FWIW)?
Both; subject is worth.
guenther [1] http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html
Thanks for your help and advices. Sam