You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Daniel Lemke <le...@jam-software.com> on 2010/03/09 14:34:24 UTC
ImageInfo plugin
Is there a reason why the "latest" (2007-01-17) version of ImageInfo plugin is not part of the SA source?
________________________________
----------------------------------------------------
JAM Software GmbH
Gesch?ftsf?hrer: Joachim Marder
Max-Planck-Str. 22 * 54296 Trier * Germany
Tel: 0651-145 653 -0 * Fax: 0651-145 653 -29
Handelsregister Nr. HRB 4920 (AG Wittlich) http://www.jam-software.de
Re: ImageInfo plugin
Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 3/9/2010 8:34 AM, Daniel Lemke wrote:
>
> Is there a reason why the "latest" (2007-01-17) version of ImageInfo
> plugin is not part of the SA source?
>
>
I have not researched this but I would guess a bug was never opened for
this purpose or it was just a CLA/Licensing issue. Overall, the changes
appear straightforward with the major addition being the
image_name_regex. I've reviewed the code and create a diff patch.
Dallas, could you open a bug to update this?
From reviewing the rules and the code, the attached patch and these
additional rules are the differences for consideration which you could
add as patches.
# double dot gifs (from Kevin)
body CG_DOUBLEDOT_GIF
eval:image_name_regex('/^\w{2,9}\.\.gif$/')
describe CG_DOUBLEDOT_GIF Double dotted image name
score CG_DOUBLEDOT_GIF 1.4
# emails containing pictures from digital cameras (from Kevin)
# although i think most of these images will be >256kb (unless they
# have been post-processed) so SA probably isnt scanning them.
# Nikon/Sony: DSC00001.JPG
body CG_SONY_JPG eval:image_name_regex('/^DSC\d{5}\.JPG$/')
describe CG_SONY_JPG Looks like a Sony/Nikon digital camera shot
score CG_SONY_JPG -0.1
# Fuji: DSCF0001.JPG
body CG_FUJI_JPG eval:image_name_regex('/^DSCF\d{4}\.JPG$/')
describe CG_FUJI_JPG Looks like a Fuji digital camera shot
score CG_FUJI_JPG -0.1
# Canon: BODY0001.JPG
body CG_CANON_JPG eval:image_name_regex('/^\w{4}\d{4}\.JPG$/')
describe CG_CANON_JPG Canon's semi random image names
score CG_CANON_JPG -0.1
regards,
KAM