stdout

David Relson relson at osagesoftware.com
Sun Sep 28 14:12:58 CEST 2003


On 28 Sep 2003 01:47:04 -0400
Tom Anderson <tanderso at oac-design.com> wrote:

> On Sat, 2003-09-27 at 08:27, David Relson wrote:
> > Why are you using "-vvv" when correcting registration errors?  FYI,
> > the normal (and proper) usage is just "-v".
> 
> I'd like to get a listing of how the registration has altered the
> database.  This includes the change in email numbers for each list,
> which tokens were added to the database, and how the tokens that were
> in the registered emails are now scored.  I was hoping that's what
> -vvv would provide.
> 
> Tom

Tom,

You can probably get most of that information by judicious use of the
"-x" flag, which can be used to activate various of bogofilter's trace
statements.  Take a look in file src/debug.h and you'll see a group of
DEBUG_XYZ macros, each of which is tied to a letter.  For example to
activate DEBUG_DATABASE use "-x d" or for DEBUG_REGISTER use "-x r". 
The letters can be strung together to activate several DEBUG_XYZ macros.
 For example to use both of these you can use "-x dr".  The debug "level
is set by "-v"'s, i.e. "-v" gives level 1, "-vv" gives 2, etc.  In
general, the higher the level, the more info is printed.

So, look in debug.h and pick which DEBUG_XYZ macros you think will be
relevant to what you want to see.  Try them out with various levels and
see what gives you the best fit to what you want.

As these macros are diagnostic tools to determine what's going wrong,
the output may not be formatted the best possible way.  However, it _is_
useful.

Have fun exploring.  If you get inspired to enhance/modify the debug
statements, let me know :-)

David




More information about the Bogofilter mailing list