[cvs] bogofilter/src bogoreader.c,1.15,1.16
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-08-30 00:39:28
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv14231 Modified Files: bogoreader.c Log Message: Ensure that MH files start with a numeric character. Index: bogoreader.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogoreader.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- bogoreader.c 30 Aug 2003 00:38:58 -0000 1.15 +++ bogoreader.c 30 Aug 2003 00:39:24 -0000 1.16 @@ -316,12 +316,8 @@ while ((dirent = readdir(reader_dir)) != NULL) { /* skip private files */ - if ((mailstore_type == MS_MAILDIR && - dirent->d_name[0] != '.') - || - (mailstore_type == MS_MH && - dirent->d_name[0] != '.' && - dirent->d_name[0] != ',')) + if ((mailstore_type == MS_MAILDIR && dirent->d_name[0] != '.') || + (mailstore_type == MS_MH && isdigit(dirent->d_name[0]))) break; } |