[Rspamd] Moore Pushover fixes

master
andryyy 2020-04-16 15:42:57 +02:00
parent 6efe0d5aab
commit 7fa10cc3b4
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ function pushover($_action, $_data = null) {
unset($senders[$i]);
continue;
}
$senders[$i] = preg_replace('/\.(?=.*?@gmail\.com$)/', '$1', $sender);
}
$senders = array_filter($senders);
if (empty($senders)) { $senders = ''; }
@ -196,4 +197,4 @@ function pushover($_action, $_data = null) {
}
break;
}
}
}