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.
