[Rspamd] Pushover fixes

This commit is contained in:
andryyy
2020-04-16 12:23:27 +02:00
parent c67bb75071
commit 1be3ca3fb9
3 changed files with 8 additions and 2 deletions

View File

@@ -201,6 +201,7 @@ foreach ($rcpt_final_mailboxes as $rcpt_final) {
$text = (!empty($api_data['text'])) ? $api_data['text'] : 'You\'ve got mail 📧';
$attributes = json_decode($api_data['attributes'], true);
$senders = explode(',', $api_data['senders']);
$senders = array_filter($senders);
if (!empty($senders) && !in_array($sender, $senders)) {
error_log("NOTIFY: pushover pipe: skipping unwanted sender " . $sender);
continue;