Corey Welton | 27 Sep 2004 15:50

odd behaviour after recompiling bmf

Hello,

I am not sure if this is a bmf issue, or one with my shell account's 
system, but I have racked my brain trying to figure it out. Sorry if 
this seems stupid, but I know I had it working before, and it's been so 
long since I've had to muck w/ bmf, that I seem to have forgotten how to 
initialise it again!

To start, I had been using bmf w/ no problems for many months.  
Recently, however, my shell account suffered a series of hdd crashes,   
Once everything was recovered, I noticed that my bmf wasn't filtering 
anymore.

running bmf from the command line returns a very simple

bmf: cannot open database

Now, looking at the source code, it seems to output that message 
whenever it cannot read the mysql tables for the good and spam lists 
(but maybe not?).  I thought this strange, as I was using libdb, not 
mysql, but in any case, I decided to recompile bmf, clear out my old 
lists, and see if I could get things fixed.

When I recompiled, I configured with the "--without-mysql" option.

After recompiling, I still see the same issues occurring -- bmf can no 
longer find my goodlist and spamlist dbs;  this occurs even if I specify 
the directory and/or filenames using the cmdline parameter. 

If I disable both mysql and libdb options, bmf of course decides to 
(Continue reading)

Tom Marshall | 27 Sep 2004 21:30

Re: odd behaviour after recompiling bmf

On Mon, Sep 27, 2004 at 09:50:36AM -0400, Corey Welton wrote:
> Hello,
> 
> I am not sure if this is a bmf issue, or one with my shell account's 
> system, but I have racked my brain trying to figure it out. Sorry if 
> this seems stupid, but I know I had it working before, and it's been so 
> long since I've had to muck w/ bmf, that I seem to have forgotten how to 
> initialise it again!
> 
> To start, I had been using bmf w/ no problems for many months.  
> Recently, however, my shell account suffered a series of hdd crashes,   
> Once everything was recovered, I noticed that my bmf wasn't filtering 
> anymore.
> 
> running bmf from the command line returns a very simple
> 
> bmf: cannot open database
> 
> Now, looking at the source code, it seems to output that message 
> whenever it cannot read the mysql tables for the good and spam lists 
> (but maybe not?).  I thought this strange, as I was using libdb, not 
> mysql, but in any case, I decided to recompile bmf, clear out my old 
> lists, and see if I could get things fixed.

This is output when it cannot open the database.  In the case of libdb, it
means that dbdb_db_open failed.

If you are not very familiar with debugging, it may be easiest to find the
problem using debug prints.  Inside dbdb_db_open, you will see several
places that check for error conditions and exit with "goto bail".  Display a
(Continue reading)


Gmane