Many Thanks Dallas, this plugin Rocks! It's amazing how many image only spams this baby has flagged in the short time I've been running it.
-----Original Message----- From: Dallas L. Engelken [mailto:[EMAIL PROTECTED] Sent: Thursday, August 03, 2006 4:14 PM To: dev@spamassassin.apache.org Cc: users@spamassassin.apache.org Subject: ImageInfo plugin for SA 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