[Mimedefang] mysql and minedefang question

G. Roderick Singleton gerry at pathtech.org
Thu Jul 24 19:06:01 EDT 2003


On Thu, 2003-07-24 at 16:05, Kevin A. McGrail wrote:
> Bryan,
> 
> 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.
> 


Someone posted some sample scripts in the past couple of weeks. Check
the archive for the messages. You may be able to search for 'die; but no
guarantees ;-)
-- 
Gerry Roderick Singleton <gerry at pathtech.org>
416-452-4583




More information about the MIMEDefang mailing list