$black = $this->isBlacklisted($email);
if ($black !== false) {
$this->logecho("DOMAIN blacklisted - {$email} - moving to another pool");
- $this->updateServer($p, $black);
+ $this->updateServer(clone($p), $black);
continue;
}
}
// this sequentially distributes requeued emails.. - to other servers. (can exclude current one if we have that flagged.)
- function updateServer($w, $exclude = -1)
+ function updateServer($ww, $exclude = -1)
{
- $ff = HTML_FlexyFramework::get();
+$w = DB_DataObject::factory($ww->tableName());
+$w->get($ww->id);
+
+$ff = HTML_FlexyFramework::get();
static $num = 0;
if (empty($ff->Core_Notify['servers'])) {
return;
$pp = clone($w);
$w->server_id = $num;
- $w->act_when = $w->sqlValue('NOW + INTERVAL 1 MINUTE');
+ $w->act_when = $w->sqlValue('NOW() + INTERVAL 1 MINUTE');
$w->update($pp);
{
echo date("Y-m-d H:i:s - ") . $str . "\n";
}
-}
\ No newline at end of file
+}