$BOGOFILTER_DIR has no effect, rc example: bogofilter_dir not recognized

Masaru Nomiya nomiya at lake.dti.ne.jp
Sat Apr 19 10:47:21 CEST 2025


Hello,

In the Message; 

  Subject    : Re: $BOGOFILTER_DIR has no effect, rc example: bogofilter_dir not recognized
  Message-ID : <aANWFlfjKKoBDUTy at krille.phloxic.productions>
  Date & Time: Sat, 19 Apr 2025 08:51:50 +0100

[CE] == Christian Ebert <bcc at phloxic.productions> has written:

CE>  * Masaru Nomiya on Saturday, April 19, 2025 at 11:49:56 +0900:
[..]
MN>  > Please use bogofilter-dir:
 
MN> >      bogofilter-dir=/Users/myself/some/location

CE>  Yes, that's what I found out and am doing now.

CE>  That's the bug in the configuration example.

CE>  What it still not working is the handling of the $BOGOFILTER_DIR
CE>  environment. The manual says:

CE>  ENVIRONMENT
CE>         Bogofilter uses a database directory, which can be set in the config
CE>         file. If not set there, bogofilter will use the value of
CE>         BOGOFILTER_DIR. Both can be overridden by the -d dir option. If none of
CE>         that is available, bogofilter will use directory $HOME/.bogofilter.

CE>  This should also work when I export $BOGOFILTER_DIR=/some/location
CE>  in my shell rcfile, but it doesn't.

......(_ _?

I set export BOGOFILTER_DIR=/usr/local/tmp/test in .bash_profile.

Then,

	$ echo $BOGOFILTER_DIR
	/usr/local/tmp/test

and,

	$ bogofilter -QQ | grep bogofilter-dir
	bogofilter-dir     = /usr/local/tmp/test

It works fine for me.

If you want to set environment variables permanently, isn't it common
to put them in .bash_profile?

Best Regards.

---
┏━━┓彡   Masaru Nomiya                    mail-to: nomiya @ lake.dti.ne.jp
┃\/彡
┗━━┛	"Perhaps the biggest issue with generative AI tools is that they
		hallucinate, meaning they make stuff up. Sap said
		hallucinations can happen up to a quarter of the time, with
		higher rates in more specialized areas like law and medicine."
		
				  -- 5 Ways to Stay Smart When Using Gen AI --


More information about the bogofilter mailing list