Re: problems with razor2 plugin in spamassassin



I got the problem solved, I had duplicate entries in
/etc/mail/spamassassin/init.pre and /etc/mail/spamassassin/v310.pre

On Oct 29, 11:56 pm, tsi...@xxxxxxxxx wrote:
I installed spamassassin from CPAN. It worked fine until I enabled
razor2 support. Now, if I try to learn new rules(sa-learn --spam --mbox
/location), I get an error:
sa-learn --mbox --spam /var/mail/spam
plugin: failed to create instance of plugin
Mail::Spamassassin::Plugin::Razor2: Can't locate object method "new"
via package "Mail::Spamassassin::Plugin::Razor2" at (eval 26) line 1.

Subroutine new redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line 58.
Subroutine set_config redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line 89.
Subroutine razor2_access redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line
133.
Subroutine plugin_report redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line
331.
Subroutine plugin_revoke redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line
349.
Subroutine check_razor2 redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line
367.
Subroutine check_razor2_range redefined at
/usr/local/share/perl/5.8.8/Mail/SpamAssassin/Plugin/Razor2.pm line
421.
Learned tokens from 0 message(s) (68 message(s) examined)

I get exactly same error when doing "$ spamassassin --lint"
I dont know anything to do more, file is in right location, it has
execution rights, tried to force install. Nothing

Thanks in advance,
Ivo

.



Relevant Pages

  • Problem with function overloading
    ... objects work well, even with function overloading. ... The app determines the name of the plugin from the filesystem. ... The new- subroutine from the baseclass contains this print-statement: ... Each init() - subroutine has a print-statement telling the classname and the ...
    (perl.beginners)
  • problems with razor2 plugin in spamassassin
    ... I installed spamassassin from CPAN. ... plugin: failed to create instance of plugin ... Subroutine set_config redefined at ...
    (perl.beginners)