problem with longoptions
Matthias Andree
matthias.andree at gmx.de
Wed Mar 16 13:48:45 CET 2005
David Relson <relson at osagesoftware.com> writes:
> Up through 0.94.0, config file options were ignored if they didn't
> apply to the program reading the config file. Now there are complaints
> and processing halts. With the current code, the sharing of config
> files is badly broken.
> Below a sample config file and a message are processed by bogolexer and
> bogofilter (versions 0.94.0 and cvs). 0.94.0 ignores what it doesn't
> like, which is appropriate, while cvs complains.
>
> This needs to be fixed for the build.
This patch fixes your problem for me, and I see you have committed an
essentially identical version to CVS.
Thanks for providing the test case.
Index: bogoconfig.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/src/bogoconfig.c,v
retrieving revision 1.212
diff -u -r1.212 bogoconfig.c
--- bogoconfig.c 16 Mar 2005 03:55:13 -0000 1.212
+++ bogoconfig.c 16 Mar 2005 12:45:23 -0000
@@ -95,6 +95,8 @@
static struct option longopts_bogofilter[] = {
/* longoptions.h - common options */
LONGOPTIONS_COMMON
+ /* longoptions.h - bogofilter/-util options */
+ LONGOPTIONS_DB
/* longoptions.h - bogofilter/-lexer options */
LONGOPTIONS_LEX
/* bogofilter specific options */
--
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
More information about the bogofilter-dev
mailing list