[Mimedefang] spamassassin scores ignored in sa-mimedefang.cf

2014-01-08 Thread Christoph Lehmann
I like to use different configuration files for authenticated and non-authenticated users. Inside MD i call SA like ($hits, $req, $names, $report) = spam_assassin_check('/etc/mail/sa-mimedefang.cf'); or ($hits, $req, $names, $report) =

Re: [Mimedefang] spamassassin scores ignored in sa-mimedefang.cf

2014-01-08 Thread David F. Skoll
On Wed, 08 Jan 2014 14:28:51 +0100 Christoph Lehmann christoph.lehmann.germ...@web.de 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

Re: [Mimedefang] spamassassin scores ignored in sa-mimedefang.cf

2014-01-08 Thread Christoph Lehmann
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