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 9cf8ca7..1443423 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