On Thu, 30 Nov 2006, John Rudd wrote:

> From: John Rudd <[EMAIL PROTECTED]>
> To: users@spamassassin.apache.org,
>     CommuniGate Pro Discussions <[EMAIL PROTECTED]>,
>     MailScanner discussion <[EMAIL PROTECTED]>
> Date: Thu, 30 Nov 2006 04:06:55 -0800
> Subject: new Botnet plugin version soon

...

> Question 2: someone asked why my module is "Botnet" instead of
> "Mail::SpamAssassin::Plugin::Botnet".  The answer is: when I
> first started this (and this is/was my first SA Plugin authoring
> attempt), I tried that and it didn't work.  If someone wants to
> look at it, and figure out how to make that work

I prefer to have all the SpamAssassin plugins grouped together where
the default install puts them.  This is in the directory:

/usr/local/libdata/perl5/site_perl/Mail/SpamAssassin/Plugin/

on my OpenBSD boxes.

So I altered Botnet.pm so the line:

package Botnet;

now reads:

package Mail::SpamAssassin::Plugin::Botnet;

and placed it in the above directory.

The line:

loadplugin      Botnet    Botnet.pm

in /etc/mail/spamassassin/Botnet.cf was altered to:

loadplugin Mail::SpamAssassin::Plugin::Botnet

It works a treat.

I did something similar for the FuzzyOcr.pm plugin.

> (but still have the files located in /etc/mail/spamassassin) I
> would happily incorporate it.

Well, you *could* do this with soft links.  But that would be
a terrible hack :-(
-- 
Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
[EMAIL PROTECTED]               Phone: +44 1225 386101

Reply via email to