[Mimedefang] mysql and minedefang question

Kevin A. McGrail kmcgrail at peregrinehw.com
Thu Jul 24 16:06:01 EDT 2003


Your main problem is simply that you are doing a die if you can't connect to
the database.

> > Is there something i can add after the
> > $dbh= DBI->connect("DBI:mysql:spamassassin:IP","XXXX","XXX");

This line should be something like

$use_database = 0;
if ($dbh= DBI->connect("DBI:mysql:spamassassin:IP","user","pass"))  {

    $use_database = 1;


Then, everywhere where you use $dbh, you need to short circuit it with a
check for $use_database.  If you need a more specific example, I can look at
that for you as well.


More information about the MIMEDefang mailing list