X-Git-Url: https://git.donarmstrong.com/?p=spamassassin_config.git;a=blobdiff_plain;f=common%2Fimage_spam;h=e2c6f198e4a9378d7c372bcd6b45be52d4ee9954;hp=c8f13d857f53695874812bdd3b63528eb3976c3c;hb=83d6542d8bc32c6daa1b7f921a538a44c21f2383;hpb=b42f79177118979496d1bedf6b24a2eba4932252 diff --git a/common/image_spam b/common/image_spam index c8f13d8..e2c6f19 100644 --- a/common/image_spam +++ b/common/image_spam @@ -1,5 +1,7 @@ # -*- mode: spamassassin -*- +ifplugin Mail::SpamAssassin::Plugin::ImageInfo + body ONE_PNG eval:image_count('png',1,1) describe ONE_PNG Contains exactly one png attachment score ONE_PNG 0.5 @@ -8,6 +10,8 @@ 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) +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 + +endif \ No newline at end of file