<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Debugging</title><link>https://sourceforge.net/p/bogofilter/wiki/Debugging/</link><description>Recent changes to Debugging</description><atom:link href="https://sourceforge.net/p/bogofilter/wiki/Debugging/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 11 Nov 2013 19:51:34 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/bogofilter/wiki/Debugging/feed" rel="self" type="application/rss+xml"/><item><title>Debugging modified by Matthias Andree</title><link>https://sourceforge.net/p/bogofilter/wiki/Debugging/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="debugging-hints"&gt;Debugging hints&lt;/h1&gt;
&lt;p&gt;If you think the lexer (the part of bogofilter that breaks out the works from the input) is goofing up, try running bogofilter or bogolexer again, and add -vvvv -xbilmt to the command line.  Note that this produces copious output and should not be placed in cron jobs, mail filters, or thereabouts.&lt;/p&gt;
&lt;p&gt;The full list of debug flags is in the source tarball in debug.h, excerpt shown below:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;#define BIT_NAMES       &amp;quot;abcdghilmrstuwyz&amp;quot;&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_ALGORITHM   MASK_BIT('A')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_READER      MASK_BIT('B')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_CONFIG      MASK_BIT('C')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_DATABASE    MASK_BIT('D')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_GENERAL     MASK_BIT('G')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_HTML        MASK_BIT('H')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_ICONV       MASK_BIT('I')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_LEXER       MASK_BIT('L')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_MIME        MASK_BIT('M')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_MULTI       MASK_BIT('U')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_REGISTER    MASK_BIT('R')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_SPAMICITY   MASK_BIT('S')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_TEXT        MASK_BIT('T')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_WORDLIST    MASK_BIT('W')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_MEMORY      MASK_BIT('Y')&lt;/span&gt;
&lt;span class="c"&gt;#define BIT_TEST        MASK_BIT('Z')&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;These are the bits you would add to the -x option.  For instance, -xl would enable lexer debugging, -xlm would enable lexer and MIME debugging.  Whether you use capital or small letters does not matter.&lt;/p&gt;
&lt;p&gt;The "-v"s are to raise the output level, some debug output is only generated at high verbosity levels.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthias Andree</dc:creator><pubDate>Mon, 11 Nov 2013 19:51:34 -0000</pubDate><guid>https://sourceforge.net6ad29e3ffb62f11f356df4d60516f7d2a0f148c3</guid></item></channel></rss>