X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/6b8a5143271a6e20dcd73a3fb1f7f0ec7472818a..d3c4a10fe714842c534e69c69fb42b38974b14b7:/quarantine.php diff --git a/quarantine.php b/quarantine.php index 4afefab..af294c5 100644 --- a/quarantine.php +++ b/quarantine.php @@ -23,7 +23,6 @@ $mail = unserialize($_SESSION['mailInfo']["$mail_id"]); $secret_id = $mail->secret_id; $recipient = $mail->recipient; - //echo "$mail_id $secret_id $recipient"; if ($request == 'release') { $amavisserver = $CFG->amavisd_db_host; @@ -69,48 +68,6 @@ if ($loggedIn && isset($_GET['id'])) { $ids = explode(',', $_GET['id']); $query = handleRequest($request, $ids); -/* exit; - $mail_id = urldecode($_GET['id']); - $mail = unserialize($_SESSION['mailInfo']["$mail_id"]); - $secret_id = $mail->secret_id; - $recipient = $mail->recipient; - - $query = array(); - if ($request == 'release') { - $amavisserver = $CFG->amavisd_db_host; - $policy_port = $CFG->amavis_policy_port; - - $fp = fsockopen($amavisserver, $policy_port, $errno, $errstr, 30); - if (!$fp) { - error("$errstr ($errno)"); - exit; - } - $out = "request=" . $request . "\r\n"; - $out .= "mail_id=" . $mail_id . "\r\n"; - $out .= "recipient=" . $recipient . "\r\n"; - $out .= "secret_id=" . $secret_id . "\r\n\r\n"; - fwrite($fp, $out); - $response = fread($fp, 8192); - fclose($fp); - $response = urldecode($response); - if (! preg_match("/^setreply=250\s+([\d\.]+)\s+(.*)/", $response, $matches)) { - error("Request to release failed [$out][$response]"); - exit; - } - if ($matches[1] != '2.0.0') { - error($matches[2]); - exit; - } - - $query[] = "UPDATE msgrcpt SET rs = 'R' WHERE mail_id = '$mail_id'"; - } else if ($request == 'delete') { - $query[] = "UPDATE msgrcpt SET rs = 'D' WHERE mail_id = '$mail_id'"; - } else { - error("Unknown operation [$request]"); - exit; - } - print_r($query); - exit;*/ $success = $DB->update($query); if (! $success) { error("Message not released, contact administrator [$query]");