[Rspamd] Fix quarantine and pushover notifications

This commit is contained in:
andryyy
2020-04-11 08:02:15 +02:00
parent 730fa16a69
commit cb599db61e
2 changed files with 7 additions and 7 deletions

View File

@@ -177,10 +177,11 @@ foreach (json_decode($rcpts, true) as $rcpt) {
foreach ($rcpt_final_mailboxes as $rcpt_final) {
error_log("NOTIFY: pushover pipe: processing pushover message for rcpt " . $rcpt_final . PHP_EOL);
$stmt = $pdo->prepare("SELECT * FROM `pushover`
WHERE `username` = :username AND `active` = '1'");
$stmt->execute(array(
':username' => $rcpt
':username' => $rcpt_final
));
$api_data = $stmt->fetch(PDO::FETCH_ASSOC);
if (isset($api_data['key']) && isset($api_data['token'])) {