I was working today to store Spam Assassin preferences in a MySQL database, so that I could enable my users to update their Spam Assassin preferences through a Squirrelmail plug-in called "SpamAssassin+SQL".
It took me some time to figure out how to call MySQL from the spamd (-x -Q as options did the trick), but after that, I started to get an annoying error message:
failed to find DB.php in /usr/local/lib/phpouch. So I went looking:
# /usr/libexec/locate.updatedb # locate DB.php /System/Library/PHP/DB.phpAh ... Apple logic ... let's hide some of the libraries in a place where no script can find them. The fix was easy with a symbolic link:
# ln -s /System/Library/PHP /usr/local/lib/phpThis solved all problems -- not only with the plug-in described above, but also for several other Squirrelmail plugins.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20031004130806364