You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Harry Putnam <re...@newsguy.com> on 2004/02/11 00:24:45 UTC

Debug and `areas of code'

`man spamassasin' has this to say about the -D flag:

-D [area=n,...], --debug [area=n,...]
           Produce diagnostic output. The level of diagnostic output can be
           set for each area separately; area is the area of the code to
           instrument, and n is a positive or negative number indicating the
           debug level or bitmask for that area of code.  For example, to pro-
           duce diagnostic output on all rules that hit, use:

                   spamassassin -D rulesrun=255

I see nothing in the man pages that indicates what the list of `areas'
might be.

I'd say someone missed a good chance to include that info in above
section.

Grepping on `area' in man spamassassin, man spamd, perldoc
Mail::SpamAssassin, perldoc Mail::SpamAssassin::Conf doesn't turn up
anthing helpfull.

Where can I find these areas listed or described?  Or at least how can
I get output on all areas? 

I'm also curious why this isn't just a simple numbering system rather
than something stained thru a bitmask.  Not complaining just wondered
why it is like it is.


Re: Debug and `areas of code'

Posted by Matt Kettler <mk...@evi-inc.com>.

At 06:24 PM 2/10/2004, Harry Putnam wrote:
>`man spamassasin' has this to say about the -D flag:
>
>-D [area=n,...], --debug [area=n,...]
>            Produce diagnostic output. The level of diagnostic output can be
>            set for each area separately; area is the area of the code to
>            instrument, and n is a positive or negative number indicating the
>            debug level or bitmask for that area of code.  For example, to 
> pro-
>            duce diagnostic output on all rules that hit, use:
>
>                    spamassassin -D rulesrun=255
>
>I see nothing in the man pages that indicates what the list of `areas'
>might be.

Digging in the code the current areas are:

bayes
datediff
dcc
dnsavailable
pyzor
razor
rbl
rulesrun

>Where can I find these areas listed or described?  Or at least how can
>I get output on all areas?

Look in spamassassin.pm with grep -B15 -A5 "rulesrun"