|
|
@ -58,6 +58,9 @@ sub connect_handler { |
|
|
|
$self->log(LOGDEBUG,"DSN:$dsn"); |
|
|
|
$self->log(LOGDEBUG,"DSN:$dsn"); |
|
|
|
$dbh = DBI->connect($dsn,$user,$passwd) || $self->log(LOGERROR,DBI::errstr); |
|
|
|
$dbh = DBI->connect($dsn,$user,$passwd) || $self->log(LOGERROR,DBI::errstr); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Use UTF8 |
|
|
|
|
|
|
|
$dbh->do("SET NAMES 'utf8';") || $self->log(LOGERROR,$dbh->errstr()); |
|
|
|
|
|
|
|
|
|
|
|
# generate mail id |
|
|
|
# generate mail id |
|
|
|
$mail_id = $$.'.'.time.'.'.int(rand(10000)); |
|
|
|
$mail_id = $$.'.'.time.'.'.int(rand(10000)); |
|
|
|
# set note for other plugins |
|
|
|
# set note for other plugins |
|
|
|