Kevin Plested wrote:
*I'm trying to add a new plugin to Spamassassin, I located my plugin directory on my server:* /usr/local/lib/perl5/site_perl/5.8.4/Mail/SpamAssassin/Plugin/ *by searching on my server for URIDNSBL.pm.* *When I put my new plugin into that directory, and call it from init.pre, and run a --lint, I get the following:* [11359] warn: plugin: failed to parse plugin (from @INC): Can't locate MAIL/SpamAssassin/Plugin/PDFInfo.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.4/i386-freebsd /usr/local/lib/perl5/site_perl/5.8.4 /usr/local/lib/perl5/5.8.4/i386-freebsd /usr/local/lib/perl5/5.8.4 /usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd /usr/local/lib/perl5/site_perl/5.8.3 /usr/local/lib/perl5/site_perl/5.8.1/i386-freebsd /usr/local/lib/perl5/site_perl/5.8.1 /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/vendor_perl/5.8.4/i386-freebsd /usr/local/lib/perl5/vendor_perl/5.8.4 /usr/local/lib/perl5/vendor_perl/5.8.3/i386-freebsd /usr/local/lib/perl5/vendor_perl/5.8.3 /usr/local/lib/perl5/vendor_perl /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl) at (eval 52) line 1. [11359] warn: plugin: failed to create instance of plugin MAIL::SpamAssassin::Plugin::PDFInfo: Can't locate object method "new" via package "MAIL::SpamAssassin::Plugin::PDFInfo" at (eval 53) line 1.
*What am I doing wrong?*

Using a loadplugin line that has "MAIL::" rather than "Mail::".

I wouldn't put third-party/custom plugins in the perl lib directories either (I'd put them in/under your site config directory), but that isn't the cause of your problem


Daryl

Reply via email to