[PATCH] experimenting with new parsing rules

David Relson relson at osagesoftware.com
Tue Sep 16 03:34:18 CEST 2003


On Tue, 16 Sep 2003 03:01:11 +0200
Matthias Andree <matthias.andree at gmx.de> wrote:

> On Mon, 15 Sep 2003, David Relson wrote:
> 
> > As a bit more info, set_tag("header") isn't called until the first
> > '\n' is encountered.  Hence the first line isn't tagged.
> > 
> > Try the following test:
> > 
> > export BOGOTEST=2
> > cat | bogolexer -p <<EOF
> > Head1: word1
> > Head2: word2
> > EOF
> 
> Ah. Worksforme for the second line -- astonishing.  Is this another
> incarnation of the undead "^From " line special casing that happened
> to be too unspecific?

I suspect the proper thing to do is (roughly)

1 - have bogoreader return the "From " line, so passthrough can process
it.
2 - have the lexer eat the "From " line if mbox_mode is set and it's the
first line of a message.

I'll have to try it ...





More information about the bogofilter-dev mailing list