if (is_object($mail) && true == $util->authorized($mail->recipient)) {
$secret_id = $mail->secret_id;
$recipient = $mail->recipient;
+ $sender = $mail->sender;
if ($request == 'release') {
$amavisserver = $CFG->amavisd_db_host;
} else if ($request == 'delete') {
$query[] = "UPDATE msgrcpt SET rs = 'D' WHERE mail_id = '$mail_id'";
} else if ($request == 'block') {
- $query[] = $recipient;
+ $query[] = $sender;
} else {
error("Unknown operation [$request]");
exit;