Bug in lexer_v3

Evgeny Kotsuba evgen at shatura.laser.ru
Tue Jan 18 09:36:30 CET 2005


David Relson wrote:

>Evgeny,
>
>Moving "msg_header = false" has no effect in my test.  Both old and new
>versions of bogolexer produce the same tokens.
>  
>
yes,  I have to comment yy_set_state_initial  and put BEGIN INITIAL  as 
part of yy_set_state_initial  (right in lexer_v3.c, but the same is in  
lexer_v3.l)

case 20:
YY_RULE_SETUP
{ enum mimetype type = get_content_type();
                          have_body = true;
//                           msg_header = false;
                          clr_tag();
                          switch (type) {
                          case MIME_TEXT_HTML:    BEGIN HTML; break;
                          case MIME_MESSAGE:   

                          BEGIN INITIAL;
                          /* yy_set_state_initial();*/ break;

                          default:        BEGIN TEXT;
                          }
                          msg_header = false;
                          return EOH;
                        }
    YY_BREAK


SY,
EK




More information about the bogofilter-dev mailing list