[EMAIL PROTECTED] wrote:
Hello all. Mostly a lurker here. I am trying to install the imageinfo
plugin. So, i followed the instructions, place *.pm file in "Plugins"
dir and *.cf file in "Spamassassin" dir. Do a spamassassin --lint and get [6870] warn: plugin: failed to parse plugin (from @INC): Can't locate
Mail/SpamA              ssassin/Plugin/ImageInfo.pm in @INC (@INC
contains: /usr/lib/perl5/vendor_perl/5 .8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/5.8              .3/i586-linux-thread-multi
/usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i 586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl /              usr/lib/perl5/vendor_perl) at
(eval 58) line 1.
[6870] warn: plugin: failed to create instance of plugin
Mail::SpamAssassin::Plu              gin::ImageInfo: Can't locate object
method "new" via package "Mail::SpamAssassin ::Plugin::ImageInfo" at (eval 59) line 1.

I am sure it has to do with the dir structure. We use oes-linux and the
dir structure on it is /etc/mail/spamassassin. So i am asking in what
file do i change the path from /mail/spamassassin to
/etc/mail/spamassassin. I have searched through the 2 files (*.pm and
*.cf and can not find it_). Thanks for any help
Hi

I had a similiar problem - in my case the plugin was loading twice which didn't work in the second attempt because of a similiar error. There's no problem to put the .pm file in ANY directory you might want, just add this to your v310.pre (or whatever the .pre file is called in your installation) and adjust the path:

# ImageInfo - performs some checks over the attached images
#
loadplugin Mail::SpamAssassin::Plugin::ImageInfo /etc/mail/spamassassin/plugins/ImageInfo.pm

Then comment-out the loadplugin line in the .cf file and you're fine.

Matt

Reply via email to