Re: spamprobe-1.3x2 released - Big bug in spamprobe - unusable database if moved.

"David A. Lee" <[email protected]> Mon, 5 Dec 2005 17:22:42 -0500
Newsgroups gmane.mail.spam.spamprobe.general
Message-ID <[email protected]>
I found a bug in 1.3x2 ... there is this new file "spamprobe.hdl" which 
seems to have some config info in it.
The procedure prior to 1.3 I used to do to recreate spamprobe databases was


cp -r .spamprobe sp
cd sp
spamprobe -d . export > sp_export
rm sp_words.hash
spamprobe -d . hash:size:. import < sp_export


so far so good
now this breaks

cd ..
mv .spamprobe .spamprobe.save
mv sp .spamprobe
spamprobe counts  **** THIS FAILS cannot open directory error

however this works

spamprobe -d .spamprobe counts


Poking around I found the spamprobe.hdl file contains the name of the 
directory, which now happens to be wrong.   hand editing spamprobe.hdl to 
refer to $HOME/.spamprobe instead of $HOME/sp fixes the problem




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click