]> git.donarmstrong.com Git - spamassassin_config.git/commitdiff
Summary: change SUBJMONEY to actually require some digits in the money
authorDon Armstrong <don@debian.org>
Sun, 11 Jan 2015 20:44:43 +0000 (20:44 +0000)
committerDon Armstrong <don@debian.org>
Sun, 11 Jan 2015 20:44:43 +0000 (20:44 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@452 0b7a5b0c-1f2c-0410-bd74-c376f8064c91

common/money_spam

index 9cf8ca75460d8edc833d1b23d41897f905b2717d..1443423a5b361248e9887367deb4c14b7d2bea86 100644 (file)
@@ -262,7 +262,8 @@ body MONEY          /((usd|yen|eur?o?|dollar|\$)\s*\d[\d\.\,]+|\d[\d\.\,]+\s*(usd|yen|eu
 describe MONEY         Some amount of money in body
 score MONEY            0.5
 
-header SUBJMONEY       subject =~ /((usd|yen|eur?o?|dollar|\$)\s*[\d\.\, ]+|[\d\.\, ]+\s*(usd|yen|eur?o?|dollar|\$))/i
+# don 2015-01-11 (tweaking rule slightly; must contain at least one digit to be money
+header SUBJMONEY       subject =~ /((usd|yen|eur?o?|dollar|\$)(?:[\d\.\, ]*\d[\d\.\, ]*)|(?:[\d\.\, ]*\d[\d\.\, ]*)(usd|yen|eur?o?|dollar|\$))/i
 describe SUBJMONEY     Some amount of money in subject
 score SUBJMONEY                3