[cvs] bogofilter/src bogotune.c,1.157,1.158

Matthias Andree matthias.andree at gmx.de
Thu Sep 30 11:20:25 CEST 2004


relson at users.sourceforge.net writes:

> Update of /cvsroot/bogofilter/bogofilter/src
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2403
>
> Modified Files:
> 	bogotune.c 
> Log Message:
> Don't permit use of both '-d' and '-D' options.

Does this catch "bogotune -D -d blah"?

What is this -D stuff *really* about?
Wouldn't we rather add an option so that bogotune can tell the data base
stuff "data base in memory, no bogohome needed"? I wonder if the patch
you made leaves all the environment stuff in still - which is useless
for an in-memory data base which goes away with program shutdown.

> Index: bogotune.c
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/src/bogotune.c,v
> retrieving revision 1.157
> retrieving revision 1.158
> diff -u -d -r1.157 -r1.158
> --- bogotune.c	29 Sep 2004 23:21:13 -0000	1.157
> +++ bogotune.c	29 Sep 2004 23:46:07 -0000	1.158
> @@ -870,6 +870,10 @@
>  		    ds_file = *++argv;
>  		    break;
>  		case 'D':
> +		    if (ds_file) {
> +			fprintf(stderr, "Using both \"-d\" and \"-D\" options is not allowed.\n");
> +			exit(EX_ERROR);
> +		    }
>  		    ds_file = NULL;
>  		    break;
>  		case 'E':
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> bogofilter-cvs mailing list
> bogofilter-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bogofilter-cvs
>

-- 
Matthias Andree

NOTE YOU WILL NOT RECEIVE MY MAIL IF YOU'RE USING SPF!
Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)



More information about the bogofilter-dev mailing list