patch for reading config files

David Relson relson at osagesoftware.com
Wed Mar 5 19:34:37 CET 2003


At 01:19 PM 3/5/03, Alexander Wasmuth wrote:

>David Relson wrote:
> > At 09:12 AM 3/5/03, Boris 'pi' Piwinger wrote:
> > >David Relson wrote:
> > >
> > >> Bogofilter-0.11.1 considers it an error when it can't read the system
> > >> config file (/etc/bogofilter.cf).  After that error, it doesn't try to
> > >read
> > >> the user config file (~/.bogofilter.cf).  This is a defect in the code.
> > >
> > >I do have a readable /etc/bogofilter.cf. It says:
> > >user_config_file=~/.bogofilter.cf
> >
> > I'll take another look.  Evidently I misunderstood what was happening.
> >
> > Have you tested the patch.  I suspect that it fixes the problem even if my
> > diagnosis wasn't quite right.
>
>I applied the patch and it apparently solved the problem.
>
>Bogofilter now reads the user config if no /etc/bogofilter.cf is
>present. If there's a non default user config (eg. ~/.bogofilter/config)
>specified in /etc/bogofilter.cf it works now without a problem, too.

Alex,

Your feedback is appreciated.  I learned that "it runs on my machine" is 
merely step #1.  With the feedback from you and from pi, I know that it's 
fine on machines #2 and #3.  The next step is to upload 0.11.1.1 to 
SourceForge, which will happen in a couple of hours.

Thanks.

David






More information about the Bogofilter mailing list