On Wed, 08 Jan 2014 14:28:51 +0100
Christoph Lehmann <[email protected]> wrote:
> I like to use different configuration files for authenticated and
> non-authenticated users.
> ($hits, $req, $names, $report) =
> spam_assassin_check('/etc/mail/sa-mimedefang.cf');
MIMEDefang uses a persistent Mail::SpamAssassin object, unfortunately.
So once it's created, subsequent calls to spam_assassin_check simply
return the same object even if the config file is specified differently.
You can prevent this by calling:
undef $SASpamTester;
just before any of the spam_assassin_* functions.
Regards,
David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang