[cvs] bogofilter/src bogoconfig.c, 1.243, 1.244 longoptions.h, 1.23, 1.24
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: David R. <re...@us...> - 2006-10-03 21:38:07
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26961/src Modified Files: bogoconfig.c longoptions.h Log Message: Added --ham-true option Index: bogoconfig.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/bogoconfig.c,v retrieving revision 1.243 retrieving revision 1.244 diff -u -d -r1.243 -r1.244 --- bogoconfig.c 9 Aug 2006 23:18:21 -0000 1.243 +++ bogoconfig.c 3 Oct 2006 21:38:04 -0000 1.244 @@ -92,7 +92,9 @@ static struct option longopts_bogofilter[] = { /* longoptions.h - common options */ LONGOPTIONS_COMMON - /* longoptions.h - bogofilter/-lexer options */ + /* longoptions.h - bogofilter */ + LONGOPTIONS_MAIN + /* longoptions.h - bogofilter/bogolexer options */ LONGOPTIONS_LEX /* longoptions.h - bogofilter/bogoutil options */ LONGOPTIONS_DB @@ -518,6 +520,7 @@ break; case 'e': + case O_HAM_TRUE: nonspam_exits_zero = true; break; Index: longoptions.h =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/longoptions.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- longoptions.h 20 Jun 2006 22:10:41 -0000 1.23 +++ longoptions.h 3 Oct 2006 21:38:04 -0000 1.24 @@ -43,6 +43,7 @@ O_NS_ESF, O_SP_ESF, O_HAM_CUTOFF, + O_HAM_TRUE, O_HEADER_FORMAT, O_LOG_HEADER_FORMAT, O_LOG_UPDATE_FORMAT, @@ -92,6 +93,10 @@ { "version", N, 0, 'V' }, \ { "verbosity", N, 0, 'v' }, +/* options for bogofilter */ +#define LONGOPTIONS_MAIN \ + { "ham-true" , N, 0, O_HAM_TRUE }, + /* options for bogofilter and bogolexer */ #define LONGOPTIONS_LEX \ { "block-on-subnets", R, 0, O_BLOCK_ON_SUBNETS }, \ |