From 7fa10cc3b47c4ba69ce17cce0a7ca7196751730c Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 16 Apr 2020 15:42:57 +0200 Subject: [PATCH] [Rspamd] Moore Pushover fixes --- data/web/inc/functions.pushover.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/web/inc/functions.pushover.inc.php b/data/web/inc/functions.pushover.inc.php index 080193646..feb96a333 100644 --- a/data/web/inc/functions.pushover.inc.php +++ b/data/web/inc/functions.pushover.inc.php @@ -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; } -} \ No newline at end of file +}