SA Bugzilla – Bug 79
Spamassassin 2.11 is not compatible with new razor-agents 1.20
Last modified: 2002-06-15 03:58:08 UTC
Razor::Client->new fails with new razor-agents 1.20 because the code few lines above replace default line separator \n (which is needed for Razor to read servers list). BTW, in new Razor I not find any code which damage global $/, only local one. Use following patch to fix it: --- lib/Mail/SpamAssassin/Dns.pm.bak Wed Jan 9 00:18:48 2002 +++ lib/Mail/SpamAssassin/Dns.pm Mon Mar 4 19:49:15 2002 @@ -176,7 +176,6 @@ require Razor::Client; require Razor::Agent; local ($^W) = 0; # argh, warnings in Razor - local ($/); # argh, bugs in Razor local $SIG{ALRM} = sub { die "alarm\n" }; alarm 10; --- lib/Mail/SpamAssassin/Reporter.pm.bak Wed Jan 9 00:18:48 2002 +++ lib/Mail/SpamAssassin/Reporter.pm Mon Mar 4 19:52:11 2002 @@ -93,7 +93,6 @@ require Razor::Client; require Razor::Agent; local ($^W) = 0; # argh, warnings in Razor - local ($/); # argh, bugs in Razor local $SIG{ALRM} = sub { die "alarm\n" }; alarm 10;
Thanks for tracking this down and sending patch. Included in CVS now.
*** Bug 179 has been marked as a duplicate of this bug. ***
*** Bug 178 has been marked as a duplicate of this bug. ***