/[pkg-listmaster]/trunk/spamassassin_config/common/image_spam
ViewVC logotype

Contents of /trunk/spamassassin_config/common/image_spam

Parent Directory Parent Directory | Revision Log Revision Log


Revision 310 - (hide annotations) (download)
Sat May 23 23:17:46 2009 UTC (4 years ago) by don
File size: 949 byte(s)
 * add rules to match the jpeg spams
1 don 306 # -*- mode: spamassassin -*-
2    
3 don 308 ifplugin Mail::SpamAssassin::Plugin::ImageInfo
4    
5 don 306 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 don 310 body ONE_JPG eval:image_count('jpg',1,1)
14     describe ONE_JPG Contains exactly one jpg attachment
15     score ONE_JPG 0.5
16    
17     body MOSTLY_JPG_IMAGE eval:image_to_text_ratio('jpg',0,0.2)
18     describe MOSTLY_JPG_IMAGE Contains mostly jpg image, with little text
19     score MOSTLY_JPG_IMAGE 2
20    
21    
22 don 308 body VIAGRA_IMG_SIZE eval:image_size_range('png',370,390,405,425)
23 don 306 describe VIAGRA_IMG_SIZE Matches the size of viagra images
24     score VIAGRA_IMG_SIZE 2
25 don 308
26 don 310 body VIAGRA_JPG_SIZE eval:image_size_range('jpg',370,390,405,425)
27     describe VIAGRA_JPG_SIZE Matches the size of viagra images
28     score VIAGRA_JPG_SIZE 2
29    
30    
31 don 308 endif

  ViewVC Help
Powered by ViewVC 1.1.5