while ($sent_mails < $globals->lists->max_mail_per_min
&& time() - $handler < 60) {
// take a lock on a mail
- XDB::execute("UPDATE ml_moderate
+ XDB::execute("UPDATE email_list_moderate
SET handler = {?}
WHERE handler IS NULL
ORDER BY ts
$query = XDB::query("SELECT nom, prenom, user_id, password,
ml, domain, mid, action, message
FROM auth_user_md5 AS u
- INNER JOIN ml_moderate AS ml ON (u.user_id = ml.uid)
+ INNER JOIN email_list_moderate AS ml ON (u.user_id = ml.uid)
WHERE ml.handler = {?}", $handler);
list($nom, $prenom, $uid, $password, $list, $domain, $mid, $action, $reason) = $query->fetchOneRow();
}
// release the lock
- XDB::execute("DELETE FROM ml_moderate WHERE handler = {?}",
+ XDB::execute("DELETE FROM email_list_moderate WHERE handler = {?}",
$handler);
sleep(60 * $count / $globals->lists->max_mail_per_min);
}
{
list($subs,$mails) = $this->client->get_pending_ops($list);
$res = XDB::query("SELECT mid
- FROM ml_moderate
+ FROM email_list_moderate
WHERE ml = {?} AND domain = {?}",
$list, $domain);
$mids = $res->fetchColumn();
return false;
}
Get::kill('mid');
- return XDB::execute("INSERT IGNORE INTO ml_moderate
+ return XDB::execute("INSERT IGNORE INTO email_list_moderate
VALUES ({?}, {?}, {?}, {?}, {?}, NOW(), {?}, NULL)",
$liste, $domain, $mid, S::i('uid'), $action, Post::v('reason'));
}
copyTable('#x4dat#.homonymes', 'homonyms');
copyTable('#x4dat#.ip_watch', 'ip_watch');
copyTable('#x4dat#.mx_watch', 'mx_watch');
-copyTable('#x4dat#.ml_moderate', 'ml_moderate');
+copyTable('#x4dat#.ml_moderate', 'email_list_moderate');
copyTable('#x4dat#.postfix_blacklist', 'postfix_blacklist');
copyTable('#x4dat#.postfix_mailseen', 'postfix_mailseen');