John Rudd wrote:
> 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.

That's odd. What errors did you get?

> If someone wants to look at it, and 
> figure out how to make that work (but still have the files located in 
> /etc/mail/spamassassin) I would happily incorporate it.

It shoudl just work. I'll take my own p0f plugin as an exampl.

This is copied from "/usr/local/etc/mail/spamassassin.plugins/p0fOS.pm":
---8<---
package Mail::SpamAssassin::Plugin::p0fOS;
use base 'Mail::SpamAssassin::Plugin';
---8<---

This is copied from "/usr/local/etc/mail/spamassassin/plugins.pre":
---8<---
loadplugin Mail::SpamAssassin::Plugin::p0fOS 
/usr/local/etc/mail/spamassassin.plugins/p0fOS.pm
---8<---

As you can see, my local configs are in "/usr/local/etc/mail/spamassassin", the 
plugin is placed in "/usr/local/etc/mail/spamassassin.plugins", and is named 
"Mail::SpamAssassin::Plugin::p0fOS".

As long as I specify both the full name and full path when loading the plugin, 
it works just fine.

Regards
/Jonas
-- 
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/

Reply via email to