[cvs] bogofilter lexer.c,1.17,1.18
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2003-01-31 13:03:57
|
Update of /cvsroot/bogofilter/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv31510 Modified Files: lexer.c Log Message: Cleanup: Don't bother to decode while the current type is MIME_STATE_UNKNOWN. Big speedup. Index: lexer.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/lexer.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- lexer.c 31 Jan 2003 12:36:00 -0000 1.17 +++ lexer.c 31 Jan 2003 13:03:54 -0000 1.18 @@ -175,7 +175,8 @@ if (count > 0 && memcmp("From ", buf, 5) != 0 - && !msg_header && !msg_state->mime_header) { + && !msg_header && !msg_state->mime_header + && msg_state->mime_type != MIME_TYPE_UNKNOWN) { int decoded_count = mime_decode(buf, count); /*change buffer size only if the decoding worked */ if (decoded_count != 0) |