Browse Source

[Rspamd] Moore Pushover fixes

andryyy 5 years ago
parent
commit
7fa10cc3b4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      data/web/inc/functions.pushover.inc.php

+ 2 - 1
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;
   }
-}
+}