Wouldn't an appropriate ruleset be something like
body FIND_MY_NAME_RULE /tom\bjones/i score FIND_MY_NAME_RULE -10.0 describe FIND_MY_NAME_RULE simple rule looks for the user name
I'm not sure if I have the syntax exactly right.. Similar rules for only the first or last name (whichever was NOT part of the email address) would also be useful with even larger (more negative scores). These would be put in local.cf Is this a good idea and how can it be improved? Thanks in advance Ken
Well, the \b is a zero-width assertion, so the above rule won't match anything. \b is really most useful at the beginning and end of things, not so much in the middle except in some special cases. Use \W (non-word character) or \s (space, tab, etc) instead.
I'd also improve to force breaks at the start and end:
body FIND_MY_NAME_RULE /\btom\Wjones\b/iHere's one Modified to match "tjones" or "tom jones" (or "tom.jones" for that matter)
body FIND_MY_NAME_RULE /\bt(om\W)?jones\b/i
