...
|
...
|
@@ -161,16 +161,25 @@ class Home extends Base { |
|
|
}
|
|
|
}
|
|
|
if($uids){
|
|
|
// 进行同步
|
|
|
$mail->syncUidEmail(
|
|
|
array_slice($uids,0,100),
|
|
|
$email['id'],
|
|
|
$folder['origin_folder'],
|
|
|
$folder['id'],
|
|
|
[],
|
|
|
[],
|
|
|
db()
|
|
|
);
|
|
|
$us = [];
|
|
|
foreach ($uids as $k=>$uid){
|
|
|
if(!isset($us[intval($k/100)])) $us[intval($k/100)] = [];
|
|
|
$us[intval($k/100)][] = $uid;
|
|
|
}
|
|
|
|
|
|
foreach ($us as $u){
|
|
|
// 进行同步
|
|
|
$mail->syncUidEmail(
|
|
|
array_values($u),
|
|
|
$email['id'],
|
|
|
$folder['origin_folder'],
|
|
|
$folder['id'],
|
|
|
[],
|
|
|
[],
|
|
|
db()
|
|
|
);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|