]> git.donarmstrong.com Git - spamassassin_config.git/blob - common/image_spam
switch ifplugin rule to inside image_spam; fix image_size rule
[spamassassin_config.git] / common / image_spam
1 # -*- mode: spamassassin -*-
2
3 ifplugin Mail::SpamAssassin::Plugin::ImageInfo
4
5 body     ONE_PNG eval:image_count('png',1,1)
6 describe ONE_PNG Contains exactly one png attachment
7 score    ONE_PNG 0.5
8
9 body     MOSTLY_PNG_IMAGE eval:image_to_text_ratio('png',0,0.2)
10 describe MOSTLY_PNG_IMAGE Contains mostly png image, with little text
11 score    MOSTLY_PNG_IMAGE 2
12
13 body     VIAGRA_IMG_SIZE  eval:image_size_range('png',370,390,405,425)
14 describe VIAGRA_IMG_SIZE  Matches the size of viagra images
15 score    VIAGRA_IMG_SIZE  2
16
17 endif