https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6817
--- Comment #11 from John Hardin <[email protected]> --- (In reply to comment #8) > (In reply to comment #6) > > Any value to adding a (?!\@) in there to avoid the "mr@" case? > > I think this would work but is your way more efficient? > > From:name =~ /^M(?:RS?|ISS)[^@\b]/mi That's not syntactically equivalent. Also, I don't know whether \b can even appear in a character class as it's a zero-length assertion. Absent any testing, something like this: /^M(?:RS?|ISS)\b(?!\@)/mi (In reply to comment #9) I don't think we want to explicitly require a period, as that would miss something like "MR BOZO FRAUDSTER" which we do want to score. Also: why is From:name hitting on the from _address_ ? Does :name default to the email address if there is no display name present? Perhaps this would be better: /^M(?:RS?|ISS)\b(?!\S*\@)/mi ...to completely exclude non-display-name From headers where the email address begins with the targeted text. -- You are receiving this mail because: You are the assignee for the bug.
