[cvs] bogofilter/src lexer.c,1.14,1.15
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-03-03 17:10:34
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv1129 Modified Files: lexer.c Log Message: Check for message separator before printing new line so that header/body flags are correctly set. Index: lexer.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/lexer.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- lexer.c 2 Mar 2003 18:48:33 -0000 1.14 +++ lexer.c 3 Mar 2003 17:10:22 -0000 1.15 @@ -84,15 +84,15 @@ int count = buff_fgetsl(buff, fpin); yylineno += 1; - if (count >= 0 && DEBUG_LEXER(0)) - lexer_display_buffer(buff); - /* Special check for message separator. If found, handle it immediately. */ if (is_from(&buff->t)) got_from(); + + if (count >= 0 && DEBUG_LEXER(0)) + lexer_display_buffer(buff); return count; } |