]> git.donarmstrong.com Git - spamassassin_config.git/commitdiff
add image rules; increase vacation mail score
authorDon Armstrong <don@debian.org>
Wed, 6 May 2009 00:48:00 +0000 (00:48 +0000)
committerDon Armstrong <don@debian.org>
Wed, 6 May 2009 00:48:00 +0000 (00:48 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@306 0b7a5b0c-1f2c-0410-bd74-c376f8064c91

common/common_spam
common/debian_specific
common/image_spam [new file with mode: 0644]

index f5151cfcf126ceb83d8a88b8e59d9b518ab5eeca..aa5e29b5250ccb6c596a705d90ce3546c67b9e22 100644 (file)
@@ -19,6 +19,12 @@ include virus_spam
 # this is the set of automatic response spam scores
 include auto_response_spam
 
 # this is the set of automatic response spam scores
 include auto_response_spam
 
+# this is a set of image-specific spam rules
+tryplugin Mail::SpamAssassin::Plugin::ImageInfo
+ifplugin Mail::SpamAssassin::Plugin::ImageInfo
+   include image_spam
+endif
+
 meta DIGEST_MULTIPLE            RAZOR2_CHECK + PYZOR_CHECK > 1
 describe DIGEST_MULTIPLE        Message hits more than one network digest check
 tflags DIGEST_MULTIPLE          net
 meta DIGEST_MULTIPLE            RAZOR2_CHECK + PYZOR_CHECK > 1
 describe DIGEST_MULTIPLE        Message hits more than one network digest check
 tflags DIGEST_MULTIPLE          net
index ad9f860c5af3b3f8557ee8d43ac9de88e53697fb..9382289ad3ebc67f53784089cb15311e286d1f69 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: spamassassin -*-
 # this contains headers and such which are Debian specific
 
 # cord, 20050811
 # this contains headers and such which are Debian specific
 
 # cord, 20050811
@@ -30,3 +31,6 @@ score XMAILER_REPORTBUG               -2
 header XPRPACKAGE_INSTALLREPORT        X-Debian-PR-Package =~ /installation-reports/
 describe XPRPACKAGE_INSTALLREPORT Install reports sometimes contain infos that trigger to much other test
 score XPRPACKAGE_INSTALLREPORT -2
 header XPRPACKAGE_INSTALLREPORT        X-Debian-PR-Package =~ /installation-reports/
 describe XPRPACKAGE_INSTALLREPORT Install reports sometimes contain infos that trigger to much other test
 score XPRPACKAGE_INSTALLREPORT -2
+
+# we bump the score of vacation up here
+score VACATIONMAIL  5
diff --git a/common/image_spam b/common/image_spam
new file mode 100644 (file)
index 0000000..c8f13d8
--- /dev/null
@@ -0,0 +1,13 @@
+# -*- mode: spamassassin -*-
+
+body    ONE_PNG eval:image_count('png',1,1)
+describe ONE_PNG Contains exactly one png attachment
+score   ONE_PNG 0.5
+
+body    MOSTLY_PNG_IMAGE eval:image_to_text_ratio('png',0,0.2)
+describe MOSTLY_PNG_IMAGE Contains mostly png image, with little text
+score   MOSTLY_PNG_IMAGE 2
+
+body    VIAGRA_IMG_SIZE  eval:image_size('png',370,390,405,425)
+describe VIAGRA_IMG_SIZE  Matches the size of viagra images
+score   VIAGRA_IMG_SIZE  2