I'm developing an SA plugin to whitelist incoming mail from the contents of a database-based mail archive. The plugin and associated rule are working, but only because I've hard-coded the database type, name, user name and password in the plugin's 'new' method.
Now I'd like to configure the database configuration details from a .cf file, preferably the one containing the associated SA rule, so is there a recommended way of doing this? Pointers to documentation or examples would be much appreciated. Martin