...
|
...
|
@@ -537,7 +537,7 @@ class Home extends Base { |
|
|
// 开始远程
|
|
|
$mailInstance = new Mail($emails[$eid]['email'],base64_decode($emails[$eid]['password']),$emails[$eid]['imap']);
|
|
|
|
|
|
if($mailInstance->login()){
|
|
|
if($mailInstance->login()==1){
|
|
|
$ret = $call($mailInstance,array_column($uid,'uid'),$folder['origin_folder'],$to_origin_folder['origin_folder']);
|
|
|
// TODO:: 这个过程无法保证原子性。没办法
|
|
|
// 先复制
|
...
|
...
|
@@ -590,8 +590,8 @@ class Home extends Base { |
|
|
public function expunge(){
|
|
|
$email = $this->getEmail();
|
|
|
$mailInstance = new Mail($email['email'],base64_decode($email['password']),$email['imap']);
|
|
|
$mailInstance->login();
|
|
|
if($mailInstance->expunge()){
|
|
|
|
|
|
if($mailInstance->login()==1 && $mailInstance->expunge()){
|
|
|
app()->_json([]);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -668,7 +668,7 @@ class Home extends Base { |
|
|
// 开始远程
|
|
|
$mailInstance = new Mail($emails[$eid]['email'],base64_decode($emails[$eid]['password']),$emails[$eid]['imap']);
|
|
|
|
|
|
if($mailInstance->login()){
|
|
|
if($mailInstance->login()==1){
|
|
|
switch ($d){
|
|
|
// 已读 未读
|
|
|
case 'seen':{
|
...
|
...
|
@@ -739,7 +739,7 @@ class Home extends Base { |
|
|
db()->delete(bodySql::$table,['lists_id'=>$id]);
|
|
|
//同步基础信息
|
|
|
$mail = new Mail($email['email'],base64_decode($email['password']),$email['imap']);
|
|
|
if($mail->login()){
|
|
|
if($mail->login()==1){
|
|
|
$folder = db()->value(folderSql::first(['id'=>$data['folder_id']],'origin_folder'));
|
|
|
if($folder){
|
|
|
$mail->client->selectFolder($folder);
|
...
|
...
|
@@ -818,7 +818,7 @@ class Home extends Base { |
|
|
if($data['uid']&&$sync_num < 1){
|
|
|
$mail = new Mail($email['email'],base64_decode($email['password']),$email['imap']);
|
|
|
|
|
|
if($mail->login()){
|
|
|
if($mail->login()==1){
|
|
|
|
|
|
$folder = db()->value(folderSql::first(['id'=>$data['folder_id']],'origin_folder'));
|
|
|
if($folder){
|
...
|
...
|
|