作者 邓超

mail del

@@ -102,7 +102,7 @@ function sync($email_id){ @@ -102,7 +102,7 @@ function sync($email_id){
102 $page = 0; 102 $page = 0;
103 $db = db(); 103 $db = db();
104 while (1){ 104 while (1){
105 - $ids = $db->all("select `id`,`uid` from ".\Model\listsSql::$table." where `email_id` = {$email_id} and `folder_id` = {$folder_id} limit 100 offset ".($page*100)); 105 + $ids = $db->all("select `id`,`uid` from ".\Model\listsSql::$table." where `email_id` = {$email_id} and `folder_id` = {$folder_id} and `udate` < ".strtotime("-5 day")." limit 100 offset ".($page*100));
106 $page++; 106 $page++;
107 if($ids){ 107 if($ids){
108 foreach ($ids as $id){ 108 foreach ($ids as $id){