3 * Table Definition for core_notify_blacklist
5 class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php';
7 class Pman_Core_DataObjects_Core_notify_blacklist extends DB_DataObject
10 /* the code below is auto generated do not remove the above tag */
12 public $__table = 'core_notify_blacklist'; // table name
13 public $id; // int(11) not_null primary_key auto_increment
20 function messageIsBlacklisted($err)
23 '5.7.0 DT:SPM', // 163.com
24 '5.7.1 H:DYNB', // some other black list
25 'on our block list', // live.com
26 'spameatingmonkey.net', // spameatingmonkey.net (users)
27 'sender is listed on the block', // korian?
28 'proofpoint.com', // another spam detecotr
29 'cloud-security.net', // another spam protector..
32 foreach($match as $str) {
33 if (strpos($err, $str) !== false) {
40 // delete blacklists older than 1 week (and try again)
44 DELETE FROM {$this->tableName()} where added_dt < NOW() - INTERVAL 1 WEEK