From 48717bb39e69da23e6bf2d6e0059fc60e0aa692f Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 23 May 2009 23:17:46 +0000 Subject: [PATCH] * add rules to match the jpeg spams git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@310 0b7a5b0c-1f2c-0410-bd74-c376f8064c91 --- common/image_spam | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/image_spam b/common/image_spam index e2c6f19..4b8b9a2 100644 --- a/common/image_spam +++ b/common/image_spam @@ -10,8 +10,22 @@ 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 ONE_JPG eval:image_count('jpg',1,1) +describe ONE_JPG Contains exactly one jpg attachment +score ONE_JPG 0.5 + +body MOSTLY_JPG_IMAGE eval:image_to_text_ratio('jpg',0,0.2) +describe MOSTLY_JPG_IMAGE Contains mostly jpg image, with little text +score MOSTLY_JPG_IMAGE 2 + + body VIAGRA_IMG_SIZE eval:image_size_range('png',370,390,405,425) describe VIAGRA_IMG_SIZE Matches the size of viagra images score VIAGRA_IMG_SIZE 2 +body VIAGRA_JPG_SIZE eval:image_size_range('jpg',370,390,405,425) +describe VIAGRA_JPG_SIZE Matches the size of viagra images +score VIAGRA_JPG_SIZE 2 + + endif \ No newline at end of file -- 2.39.2