[Mimedefang] Patch to Add Spamd Support

David F. Skoll dfs at roaringpenguin.com
Wed Jun 18 12:28:00 EDT 2003


Hi, Jason.

> I got AWL to work by setting $SAUseAWL to 1 in my filter and doing
> this to mimedefang.pl:

Thanks for the patch.  However, this can be done entirely within
the filter.  The $SASpamTester global variable is documented and I hate
to introduce another magic global variable. :-)

You can accomplish your change by adding this to your filter:

spam_assassin_init();
if (defined($SASpamTester)) {
	use Mail::SpamAssassin::DBBasedAddrList;
	$SASpamTester->set_persistent_address_list_factory(
		Mail::SpamAssassin::DBBasedAddrList->new());
}

Regards,

David.



More information about the MIMEDefang mailing list