"John D. Hardin" writes: >On Sun, 27 Aug 2006, Justin Mason wrote: > >> The .pre files are only really useful if you want to use the >> plugins loaded, in the /usr/share/spamassassin files -- otherwise, >> it's fine to add "loadplugin" lines wherever you like, just bear >> in mind that lines read before the loadplugin is read will not be >> able to use the plugin. > >To drift the topic just a little bit: > >For testing purposes I'm loading my registrar plugin in a local rules >file. In normal use everything works as expected, but when I run >sa-learn I get redefinition errors on the public functions from the >plugin (e.g. "new() redefined in URIRegistrarPlugin.pm"). > >Why would sa-learn behave this way?
that's a bit of a mystery -- perhaps it's loading it twice? I suggest using -D to see what's happening. --j.