[PATCH] experimenting with new parsing rules

David Relson relson at osagesoftware.com
Mon Sep 15 01:54:29 CEST 2003


Matthias,

If you're interested in experimenting with Michael's parsing rules, I
have attached patch that can enable/disable them using environment
variable BOGOTEST.  Sample uses would be:

BOGOTEST=0 bogolexer -p < message > 0.out
BOGOTEST=1 bogolexer -p < message > 1.out

where BOGOTEST=0 gives the current results and BOGOTEST=1 uses Michael's
rules.  I often run with redirected stdout (as shown above) so I can run
"gtkdiff 0.out 1.out" to see what's different.

Actually, BOGOTEST is bit coded with 1 enabling the modified rules and 2
enabling the lexer's debug mode (so one can see which rules are being
applied).

David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.lexer.0914.txt
URL: <https://www.bogofilter.org/pipermail/bogofilter-dev/attachments/20030914/1abf0f5c/attachment.txt>


More information about the bogofilter-dev mailing list