DataObjects/Core_notify_blacklist.php
authorAlan <alan@roojs.com>
Fri, 6 Oct 2023 05:44:18 +0000 (13:44 +0800)
committerAlan <alan@roojs.com>
Fri, 6 Oct 2023 05:44:18 +0000 (13:44 +0800)
DataObjects/Core_notify_blacklist.php

index 86ba5e5..58276f1 100644 (file)
@@ -17,9 +17,23 @@ class Pman_Core_DataObjects_Core_notify_blacklist extends DB_DataObject
     public $added_dt;
     
     
-    function messageIsBlacklisted($str)
+    function messageIsBlacklisted($err)
     {
+        $match = array(
+            '5.7.0 DT:SPM'. // 163.com
+            'on our block list ',  // live.com
+            'spameatingmonkey.net', // spameatingmonkey.net (users)
+            'sender is listed on the block', // korian?
+            'proofpoint.com', // another spam detecotr
+            'cloud-security.net', // another spam protector..
         
+        );
+        foreach($match as $str) {
+            if (strpos($err, $str) !== false) {
+                return true;
+            }
+        }
+        return false;
     }
     
 }
\ No newline at end of file