[Mimedefang] Patch to Add Spamd Support
Richard Laager
rlaager at wiktel.com
Wed Jun 18 18:56:01 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David F. Skoll wrote:
> 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());
> }
I tried just this. It fails. Can you remove this line (5138) from
mimedefang.pl.in's spam_assassin_init function:
return undef if (!in_message_context("spam_assassin_init"));
This prevents someone from using spam_assassin_init from outside of a
filter_XXX routine. After I removed this line, the code above works great.
I plan to use it instead of spamd in my setup.
Richard Laager
-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt http://www.ipgpp.com/
iQA/AwUBPvDt6W31OrleHxvOEQKRAQCeI7IXnEXyO0nPigYHFuiR/JWR4ZQAoO2W
lqNBcyKvoco45tmb2ciw2YF2
=1FBJ
-----END PGP SIGNATURE-----
More information about the MIMEDefang
mailing list