Theo Van Dinter writes:
> On Thu, Dec 21, 2006 at 06:09:23PM -0700, Kelly Jones wrote:
> > Many people write test rules w/ small negative scores like this:
> > header SUBJ_FOO_BAR_TEST Subject =~ /foo.*bar/
> 
> Really?  Why would you write a rule like that?
> 
> > header SUBJ_FOO_BAR_TEST Subject =~ /foo(.*)bar/
> > will the parentheses capture and log the $1 match above?
> 
> No.
> 
> > If not, how can I log the string a given rule matches?
> 
> Short of writing your own plugin/code, you can't.
> 
> > Can I log the psuedo-headers X-Spam-Relays-Trusted and
> > X-Spam-Relays-Untrusted?
> 
> If you write code.

Actually, if you run with -D, like:
    
    spamassassin -D -Lt < spam.txt

part of the debug output is

1. the Relays-Trusted etc lines

[17124] dbg: metadata: X-Spam-Relays-Trusted:
[17124] dbg: metadata: X-Spam-Relays-Untrusted: [ ip=121.36.138.28 rdns= 
helo=121.36.138.28 by=dogma.boxhost.net ident= envfrom= intl=0 id=E1913310090 
auth= ]
[17124] dbg: metadata: X-Spam-Relays-Internal:
[17124] dbg: metadata: X-Spam-Relays-External: [ ip=121.36.138.28 rdns= 
helo=121.36.138.28 by=dogma.boxhost.net ident= envfrom= intl=0 id=E1913310090 
auth= ]


2. the parts of the message text that caused any body rules
to fire:

[17124] dbg: rules: ran body rule T__FRAUD_DBI_7 ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule __KAM_NUMBER2 ======> got hit: "2007"
[17124] dbg: rules: ran body rule T__FRAUD_DBI_3 ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule T__FRAUD_DBI ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule T__FRAUD_DBI_4 ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule T__FRAUD_DBI_1 ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule T__FRAUD_DBI_5 ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule __HAS_ANY_EMAIL ======> got hit: "[EMAIL 
PROTECTED]"
[17124] dbg: rules: ran body rule T__FRAUD_DBI_2 ======> got hit: "$19000 M"
[17124] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "á"
[17124] dbg: rules: ran body rule __HIGHBITS ======> got hit: "á÷ôïíïâé"
[17124] dbg: rules: ran body rule __DRUGS_SLEEP2 ======> got hit: " Sonata "


--j.

Reply via email to