Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane

From: Dallas L. Engelken <dallase <at> nmgi.com>
Subject: ImageInfo plugin for SA
Newsgroups: gmane.mail.spam.spamassassin.general
Date: Thursday 3rd August 2006 20:14:06 UTC (over 12 years ago)
Greetings,

For those of you that dont want the overhead or hassel of installing all
extras to get OCR running, I give you a simpler (maybe less effective)
option..  It basically determines pixel coverage similar to what
eval:html_image_ratio() does, but html_image_ratio() actually reads
height="" and width="" params from html, and in these stock spams and
such, there is no height/width values to go off of.   So,
eval:pixel_coverage()  will actually read the gif and png headers and
calculate it from the actual image data. 

Put the .pm file that is attached in your M::SA::Plugins dir.  Add to
your init.pre (or v310.pre) the following line.

loadplugin Mail::SpamAssassin::Plugin::ImageInfo

And throw the imageinfo.cf ruleset in your local config dir (tweak
rules/scores as needed).  And dont forgot to restart spamd if you are
running it.   Feel free to tweak the ruleset you meet your needs.  It
has hit well for me today as is, but YMMV.

# grep -c _LARGO spamd.log
868

No outside tools required... yeah!   Sorry for the lack of
documentation, but I just dont have enough time to do it, and I wanted
share this.

All those scores in the cf are just "WAGs", since none have been
masschecked.   Theo, could you sandbox this?

Cya,
Dallas
 
CD: 3ms