[rt-users] SpamAssassin filter for RT 3.0.10
Robert Spier
rspier at pobox.com
Tue May 4 01:14:04 EDT 2004
> There was another tricky bug: apparently SpamAssassin munges the $_
> global variable when a message rings the spam bell, such that its value
> in the Gateway function's loop around @RT::MailPlugins gets unset. This
> clears the plugin entry so it breaks on the next incoming email. I know
> the functions/operators that set $_ are supposed have local effects but
> apparently something doesn't. Switching to an explicit loop variable
> fixed the symptom, so that patch is included.
Here's an example to share a legit use of local:
$_=3;
{
local $_;
something_that_modifies_dollar_underbar();
}
# $_ == 3
More information about the rt-users
mailing list