improved bounces handling; added AOL hack; updates #44

This commit is contained in:
following
2013-06-04 14:33:59 +02:00
parent d7bbc8e14e
commit d658c90384
5 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ class maillog
echo $this->name.": could not connect to syslog database\n";
return;
}
if (@mysql_query("USE ".$opt['system']['maillog']['syslog_db_name']) === FALSE)
if (@mysql_query("USE ".$opt['system']['maillog']['syslog_db_name'], $dbc) === FALSE)
{
echo $this->name.": could not open syslog database: ".mysql_error()."\n";
return;
@@ -59,7 +59,7 @@ class maillog
WHERE (`id`>'" . mysql_real_escape_string($last_id) . "' OR `created`>'" . mysql_real_escape_string($last_date) . "')
AND `host_name`='" . mysql_real_escape_string($opt['system']['maillog']['syslog_oc_host']) . "'
AND `program`='" . mysql_real_escape_string($opt['system']['maillog']['syslog_mta']) . "'
ORDER BY `id`");
ORDER BY `id`", $dbc);
if ($rs === FALSE)
{
echo $this->name.": syslog query error (".mysql_errno()."): ".mysql_error()."\n";