作者 邓超

mail del

... ... @@ -102,7 +102,7 @@ function sync($email_id){
$page = 0;
$db = db();
while (1){
$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));
$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));
$page++;
if($ids){
foreach ($ids as $id){
... ...