[Previous entry: "Names are important"] [Next entry: "File permissions and HTTPD"]
09/27/2004: "Revenge of popfile: Dude, where's my buckets?!"
I was a little hasty in announcing my triumphant installation of popfile on my laptop.
Symptom. Every so often, popfile stops running. It seems to happen when I reclassify e-mail to my spam bucket. When I restart popfile, all my configuration is gone!
Solution. Switch from SQLite 3 to SQLite 2. As this article clearly indicates, popfile 0.22 does not work with SQLite 3. For step-by-step instructions, read on.
When I installed all the perl modules upon which popfile depends, I upgraded SQLite to version 3, which was apparently an error in judgment. (How did I know?) Here is how I fixed the problem.
- Launch the
perlCPAN shell. (perl -MCPAN -e shell) - Install SQLite 2. (
install DBD::SQLite2) - Launch
popfileso I could change its configuration. (perl popfile.pl) - Navigate to the Advanced configuration screen in the
popfileUI. - Set
bayes_connecttodbi:SQLite2:dbname=$dbname, which specifies SQLite 2 explicitly. - Shut down
popfile. - Remove the
popfiledatabase. (rm popfile.db) - Restart
popfile.
Now for the test...
- Create a bucket named "spam".
- Check for mail. There's likely to be some spam in there.
- Reclassify a message as "spam".
- ASSERT that
popfileis still running.
That's a good enough smoke test for now. Let's hope the thing actually works now! (You'll find out if it doesn't.)
