Spamassassin Lint Test error fix for 2059/2060

To report bugs and workarounds

Moderators: erroneus, HyTeK, prisoner881



Spamassassin Lint Test error fix for 2059/2060

Postby hugh » Wed Mar 17, 2010 3:30 pm

I am running 2060, so I am not sure if this is a bug introduced in 2059 or 2060 when Spamassassin is updated.

The symptom is lint test generates this error:

Code: Select all
root@esva:~# spamassassin --lint
[23577] warn: rules: failed to run CG_FUJI_JPG test, skipping:
[23577] warn:  (Can't locate object method "image_name_regex" via
package "Mail::SpamAssassin::PerMsgStatus" at (eval 2376) line 765.
[23577] warn: )
[23577] warn: rules: failed to run CG_DOUBLEDOT_GIF test, skipping:
[23577] warn:  (Can't locate object method "image_name_regex" via
package "Mail::SpamAssassin::PerMsgStatus" at (eval 2376) line 892.
[23577] warn: )
[23577] warn: rules: failed to run CG_SONY_JPG test, skipping:
[23577] warn:  (Can't locate object method "image_name_regex" via
package "Mail::SpamAssassin::PerMsgStatus" at (eval 2376) line 1327.
[23577] warn: )
[23577] warn: rules: failed to run CG_CANON_JPG test, skipping:
[23577] warn:  (Can't locate object method "image_name_regex" via
package "Mail::SpamAssassin::PerMsgStatus" at (eval 2376) line 2224.
[23577] warn: )
[23577] warn: lint: 4 issues detected, please rerun with debug enabled
for more information


After some digging, I found spamassassin is using configuration cf files at /etc/mail/spamassassin/ against perl modules at /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin. The error is generated by out-of-date ImageInfo.pm. The old ImageInfo.pm does not has image_name_regex function. Copy the new ImageInfo.pm from /etc/mail/spamassassin/ to /usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin fix the problem.
hugh
Enthusiast
 
Posts: 39
Joined: Mon Dec 24, 2007 4:58 pm



Re: Spamassassin Lint Test error fix for 2059/2060

Postby borni » Wed Aug 04, 2010 4:04 pm

this error occurs if ImageInfo.pm isn't loaded (as it provides "image_name_regex").

simply add to /etc/mail/spamsssassin/v320.pre :

Code: Select all
loadplugin Mail::SpamAssassin::Plugin::ImageInfo /etc/mail/spamassassin/ImageInfo.pm
User avatar
borni
Genius
 
Posts: 290
Joined: Tue Jul 07, 2009 12:16 pm
Location: Essen, Germany


Return to 2.x Bugs

Who is online

Users browsing this forum: No registered users and 1 guest