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