[cvs] bogofilter/src bogoconfig.c,1.136,1.137 configfile.c,1.33,1.34 configfile.h,1.10,1.11

David Relson relson at osagesoftware.com
Sun Jan 18 21:36:12 CET 2004


On Sun, 18 Jan 2004 21:28:03 +0100
Matthias Andree <matthias.andree at gmx.de> wrote:

> On Sat, 17 Jan 2004, relson at users.sourceforge.net wrote:
> 
> > Update of /cvsroot/bogofilter/bogofilter/src
> > In directory sc8-pr-cvs1:/tmp/cvs-serv460/src
> > 
> > Modified Files:
> > 	bogoconfig.c configfile.c configfile.h 
> > Log Message:
> > Add '--option=value' to permit config file options on the command
> > line.
> > 
> > +	case '-':
> > +	    process_config_option(optarg, true, PR_COMMAND);
> > +	    break;
> > +
> 
> Is this the right thing to do? I doubt it. I'd think we'd use
> gnugetopt to parse "--option"s and use a dedicated option (yes, yet
> another) to expose configuration file options.

I don't know if it's the best solution or not, but it seems to work.  

I've been talking with Greg about adding long names for the existing
single character options.  Given the very different ways in which short
and long options are presently handled, there's a need for significant
work on option definition and handling.  I think the current code is OK
for now and the revision can wait until 0.17.

Question:  is gnugetopt() widely available?

David




More information about the bogofilter-dev mailing list