作者 邓超

mail del

... ... @@ -31,7 +31,7 @@ function start(){
// 循环阻塞
while (true){
$id = db()->value('select `id` from `'.\Model\emailSql::$table.'` where `id` > '.$id.' limit 1');
$id = db()->value('select `id` from `'.\Model\emailSql::$table.'` where `id` > '.$id.' limit 1 order by asc');
if($id){
// 占用当前的id,占用2小时
... ... @@ -92,6 +92,7 @@ function sync($email_id){
}
$call = function ($email_id,$folder_id,$origin_folder) use ($mailServer){
_echo('run e '.$email_id.' fn '.$origin_folder);
// gmail 邮箱 这个是不可选的
if($origin_folder == '[Gmail]'){
return;
... ...