[cvs] bogofilter charset.c,1.2,1.3
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-12-09 04:43:57
|
Update of /cvsroot/bogofilter/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv12492 Modified Files: charset.c Log Message: Use '!' instead of spaces for punctuation, because using spaces breaks uuencode recognition. Index: charset.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/charset.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- charset.c 8 Dec 2002 20:50:22 -0000 1.2 +++ charset.c 9 Dec 2002 04:43:54 -0000 1.3 @@ -149,8 +149,11 @@ } } - while ((ch = *blank++) != '\0') /* Characters to treat as blanks */ - charset_table[ch] = SP; + /* Characters to treat as delimiters. The ideal would be to treat them as blanks, but + that breaks ignoring uuencode, so treat them as '!' (another char not allowed in tokens) + */ + while ((ch = *blank++) != '\0') + charset_table[ch] = '!'; while ((ch = *alone++) != '\0') /* Characters to leave alone */ charset_table[ch] = ch; |