From b42f79177118979496d1bedf6b24a2eba4932252 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 6 May 2009 00:48:00 +0000 Subject: [PATCH] add image rules; increase vacation mail score git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@306 0b7a5b0c-1f2c-0410-bd74-c376f8064c91 --- common/common_spam | 6 ++++++ common/debian_specific | 4 ++++ common/image_spam | 13 +++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 common/image_spam diff --git a/common/common_spam b/common/common_spam index f5151cf..aa5e29b 100644 --- a/common/common_spam +++ b/common/common_spam @@ -19,6 +19,12 @@ include virus_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 diff --git a/common/debian_specific b/common/debian_specific index ad9f860..9382289 100644 --- a/common/debian_specific +++ b/common/debian_specific @@ -1,3 +1,4 @@ +# -*- mode: spamassassin -*- # 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 + +# 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 index 0000000..c8f13d8 --- /dev/null +++ b/common/image_spam @@ -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 -- 2.39.2