X-Git-Url: https://git.donarmstrong.com/?p=spamassassin_config.git;a=blobdiff_plain;f=common%2Fimage_spam;h=4b8b9a2fb4f83426f191cc8cfe539957d2f3efb8;hp=e2c6f198e4a9378d7c372bcd6b45be52d4ee9954;hb=1db9a6f410e64046dd0057c8db8795abc25a11fd;hpb=3558ce2c2f0ab8ff53ae0191ff9fd8d594a66647 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