[cvs] bogofilter/src lexer_v3.l,1.124,1.125
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-11-17 14:18:16
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv14219 Modified Files: lexer_v3.l Log Message: Disallow apostrophe and backtick at end of token. Index: lexer_v3.l =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/lexer_v3.l,v retrieving revision 1.124 retrieving revision 1.125 diff -u -d -r1.124 -r1.125 --- lexer_v3.l 15 Nov 2003 18:02:51 -0000 1.124 +++ lexer_v3.l 17 Nov 2003 14:17:33 -0000 1.125 @@ -121,8 +121,8 @@ UINT8 ([01]?[0-9]?[0-9]|2([0-4][0-9]|5[0-5])) IPADDR {UINT8}\.{UINT8}\.{UINT8}\.{UINT8} -BCHARSNOSPC [[:alnum:]'()+_,-./:=?#] -BCHARS [[:alnum:]'()+_,-./:=?# ] +BCHARSNOSPC [[:alnum:]()+_,-./:=?#\'] +BCHARS [[:alnum:]()+_,-./:=?#\' ] MIME_BOUNDARY {BCHARS}*{BCHARSNOSPC} ID <?[[:alnum:]-]*>? @@ -134,9 +134,9 @@ MSG_COUNT ^\".MSG_COUNT\" TOKENFRONT [^[:blank:][:cntrl:][:digit:][:punct:]] -TOKENMID [^[:blank:]<>;=():&%$#@+|/\\{}^\"?*,[:cntrl:]\[\]]+ -BOGOLEX_TOKEN [^[:blank:]<>; &% @ |/\\{}^\" *,[:cntrl:]\[\]]+ -TOKENBACK [^[:blank:]<>;=():&%$#@+|/\\{}^\"?*,[:cntrl:]\[\]._\+\-] +TOKENMID [^[:blank:][:cntrl:]<>;=():&%$#@+|/\\{}^\"?*,\[\]]+ +BOGOLEX_TOKEN [^[:blank:][:cntrl:]<>; &% @ |/\\{}^\" *,\[\]]+ +TOKENBACK [^[:blank:][:cntrl:]<>;=():&%$#@+|/\\{}^\"?*,\[\]._\'\`\-] TOKEN {TOKENFRONT}{TOKENMID}{TOKENBACK} |