# this is a set of image-specific spam rules
tryplugin Mail::SpamAssassin::Plugin::ImageInfo
-if plugin(Mail::SpamAssassin::Plugin::ImageInfo)
- include image_spam
-endif
+include image_spam
+
meta DIGEST_MULTIPLE RAZOR2_CHECK + PYZOR_CHECK > 1
describe DIGEST_MULTIPLE Message hits more than one network digest check
# -*- 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
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