Rosenbaum, Larry M. wrote:
From: Dennis Davis [mailto:[EMAIL PROTECTED]
...
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/
I would prefer to use the xxx/site_perl/Mail/SpamAssassin/Plugin for
plugins that are packaged with SpamAssassin, and that any added-in
plugins that I install separately go into /etc/mail/spamassassin. I
also see no advantage to moving the "loadplugin" statement into the
init.pre file unless there are rules in other .cf files that depend on
the plugin. In other words, it's fine the way it is.
My perspective is pretty much the same as Larry's. I prefer to keep
"installed with the software" and "3rd party or locally
installed/maintained" things in different locations. The site_perl
stuff is what SpamAssassin installs with the software, and is not "3rd
party" nor "locally installed/maintained". Therefore, if I can't make
this change work while keeping the files in /etc/mail/spamassassin ...
I'm not going to make that change.
And, since, for some odd reason, I can't make the change work, I'm not
going to break something that's working. Aesthetically I'd like the
package name to be the full blown thing ... but practically speaking,
"works" is better than "elegant".
So, unless I suddenly realize why I couldn't get it to work the other
way, this part is going to stay the way it is.
(for those who might have insights, I'm currently running this on Mac OS
X 10.3.(current), which has a funky perl that doesn't always put things
in the right place ... so this might have worked if I was on 10.4.x, or
when I switch to putting this on my Solaris machines (which happens
Monday, actually))