...
|
...
|
@@ -459,7 +459,18 @@ class Home extends Base { |
|
|
*/
|
|
|
public function move(){
|
|
|
$this->moveCopy(function (Mail $mailInstance,$uid,$origin_folder,$to_origin_folder){
|
|
|
try {
|
|
|
return $mailInstance->move($uid,$origin_folder,$to_origin_folder);
|
|
|
}catch (\Throwable $e){
|
|
|
if(app()->request('move_err_copy')){
|
|
|
// 复制成功
|
|
|
if($mailInstance->copy($uid,$origin_folder,$to_origin_folder)){
|
|
|
return $mailInstance->deleted($uid,$origin_folder);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|