So I'm trying to understand the spamAssassin rules, and I found a couple of things that don't make sense about the rules I downloaded.
1) Some of the header, body, and uri rules have regular expressions that are not enclosed in '/' (ie. /pattern/i ). Instead they are enclosed with 'm' followed by another character. I have seen the following different ways to enclose a pattern: /pattern/i # As documented m{pattern}i m'pattern'i m%pattern%i m!pattern!i Example below: uri FU_END_ET m'/et/$'i Is this valid and if so, why is it being done? 2) I don't understand the use of the '!~' for header rules. The documentation says '=~' means 'contains a regular expression' but '!~' means 'does not contain a regular expression'. Yet in both cases, there is a regular expression associated with the rule. header FH_FROMEML_NOTLD From:addr !~ /\./ [if-unset: f...@bar.com] describe FH_FROM_EML_NOTLD E-mail address doesn't have TLD (.com, etc.) For instance, could someone explain how the above rule works? It looks like to me it should hit whenever there is any From address populated regardless of whether there's a .com or not. -- View this message in context: http://old.nabble.com/Bizarre-rule-definitions-tp31861533p31861533.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.