https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7063

--- Comment #15 from Philip Prindeville <[email protected]> ---
(In reply to Quanah Gibson-Mount from comment #14)
> (In reply to Philip Prindeville from comment #12)
> > Created attachment 5216 [details]
> > Don't need /a qualifier after all if we use octal escapes
> 
> Shouldn't these lines be part of a dbg statement?

Well, yes, except that Plugin/MIMEEval.pm doesn't include Logger.pm by default.

> Something like:
> 
> if(would_log('dbg', 'check')) {
>            my $str = $_;
>            $str =~ s/[\x00\x0d\x80-\xff]+/'<' . unpack('H*', $&) . '>'/eag;
>           dbg("check_for_ascii_text_illegal: Saw match " . $str . "\n");
> }
> 
> Not sure "check" is the right facility, but seems like it.

It would be 'eval', I think.  But would_log() is also part of that module.

> For the dbg line:
> 
> dbg("check: check_for_ascii_text_illegal: Saw match " . $str . "\n");

BodyEval.pm and HeaderEval.pm both use 'eval:' as their facility.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to