You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jh...@apache.org on 2009/08/28 19:00:30 UTC
svn commit: r808954 -
/spamassassin/trunk/rulesrc/sandbox/jhardin/20_lotsa_money.cf
Author: jhardin
Date: Fri Aug 28 17:00:29 2009
New Revision: 808954
URL: http://svn.apache.org/viewvc?rev=808954&view=rev
Log:
Tweak lots_of_money ruleset
Modified:
spamassassin/trunk/rulesrc/sandbox/jhardin/20_lotsa_money.cf
Modified: spamassassin/trunk/rulesrc/sandbox/jhardin/20_lotsa_money.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/jhardin/20_lotsa_money.cf?rev=808954&r1=808953&r2=808954&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/jhardin/20_lotsa_money.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/jhardin/20_lotsa_money.cf Fri Aug 28 17:00:29 2009
@@ -1,15 +1,23 @@
ifplugin Mail::SpamAssassin::Plugin::ReplaceTags
- replace_tag CURRENCY [\(\[]?(?:GBP|=[Aa][34]|\xa3|\xa4|EUR|[Ee]uros|US[D\$]{1,2}|\$)[\]\)]?
+ replace_tag CURRENCY [\(\[]?(?:GBP|=[Aa][34]|\xa3|\xa4|EUR|[Ee]uros?|US[D\$]{1,2}|\$)[\]\)]?
body __LOTSA_MONEY_01 /<CURRENCY>\s?\d[\d.,\sO]{7,20}[\dO]/
body __LOTSA_MONEY_02 /\d[\d.,\sO]{7,20}[\dO]\s?<CURRENCY>/
body __LOTSA_MONEY_03 /<CURRENCY>\s?\d[\d.,\sO]{1,4}[\dO]\s?(?:[Mm]|[Hh][Uu][Nn][Dd][Rr][Ee][Dd]|[Tt][Hh][Oo][Uu][Ss][Aa][Nn][Dd])/
- body __LOTSA_MONEY_04 /(?:million|hundred[^\.]{1,20}thousand)[^\.]{1,50}(?:(?:U\.?S\.?\s)?dollars|U\.?K\.?\spounds|(?:U\.?K\.?\s)?pounds\ssterling|euros)/i
+ body __LOTSA_MONEY_04 /(?:mill(?:e|ion)|hundred[^\.]{1,20}thousand)[^\.]{1,50}(?:(?:U\.?S\.?\s)?dollars|U\.?K\.?\spounds|(?:U\.?K\.?\s)?pounds\ssterling|euros?francs?)/i
replace_rules __LOTSA_MONEY_01 __LOTSA_MONEY_02 __LOTSA_MONEY_03
meta LOTS_OF_MONEY (__LOTSA_MONEY_01 || __LOTSA_MONEY_02 || __LOTSA_MONEY_03 || __LOTSA_MONEY_04)
describe LOTS_OF_MONEY Huge... sums of money
+ score LOTS_OF_MONEY 0.01
+
+ meta MONEY_FREEMAIL LOTS_OF_MONEY && FREEMAIL_FROM
+ describe MONEY_FREEMAIL Lots of money from a free email service?
+
+ meta MONEY_FEE LOTS_OF_MONEY && (ADVANCE_FEE_2 || ADVANCE_FEE_3 || ADVANCE_FEE_4)
+ describe MONEY_FEE Lots of money if you first pay a fee
+
endif