cvs - fisher
    David Relson 
    relson at osagesoftware.com
       
    Mon Feb 17 13:42:09 CET 2003
    
    
  
At 07:02 AM 2/17/03, Matthias Andree wrote:
>David Relson <relson at osagesoftware.com> writes:
>
> > After you next update from cvs and build bogofilter, run command
> > "bogofilter -C -qv" to display bogofilter's configuration parameters.
> > ("-qv" runs bogofilter's query_config function.)  As this is a debugging
> > aid, most parameters are displayed (though not all).
>
>Here's some bash + X11 magic to display a comparison between default
>(left) and current configuration (right hand side):
>
># X11 magic:
>eval `resize`
># bash magic:
>diff -y -W$COLUMNS <(bogofilter -C -qv 2>&1) <(bogofilter -qv 2>&1)
>
>If you want to see just the differences, add --suppress-common-lines to
>the diff line.
>
>Replace $COLUMNS by the width of your terminal (80) if you don't have
>resize.
The config_query() routine writes it output to dbgout, which is normally 
stderr.  (That's why the "2>&1" is used.)  As there's a debug option, "-D", 
that sets dbgout to stdout, you can use "-D" instead of the "2>&1", i.e.
diff -y -W $columns <(bogofilter -CqvD) <(bogofilter -qvD)
David
    
    
More information about the bogofilter
mailing list