mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:34 +01:00
fix missing delete after move when moving cross servers
This commit is contained in:
parent
d2ad25a928
commit
70ebabaf90
@ -2995,7 +2995,7 @@ class mail_bo
|
||||
$uidsToFetch->add($_messageUID);
|
||||
|
||||
$fquery = new Horde_Imap_Client_Fetch_Query();
|
||||
$fquery->fullText();
|
||||
$fquery->fullText(array('peek'=>true));
|
||||
$fquery->flags();
|
||||
$headersNew = $this->icServer->fetch($sourceFolder, $fquery, array(
|
||||
'ids' => $uidsToFetch,
|
||||
@ -3025,6 +3025,10 @@ class mail_bo
|
||||
$retUid->add($ret);
|
||||
unset($dataNflags);
|
||||
}
|
||||
if ($deleteAfterMove)
|
||||
{
|
||||
$this->deleteMessages($_messageUID, $sourceFolder, $_forceDeleteMethod='remove_immediately');
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -613,9 +613,9 @@ class mail_ui
|
||||
$fetchCounters = !is_null($_nodeID);
|
||||
list($_profileID,$_folderName) = explode(self::$delimiter,$nodeID,2);
|
||||
if (!empty($_folderName)) $fetchCounters = true;
|
||||
error_log(__METHOD__.__LINE__.':'.$nodeID.'->'.array2string($fetchCounters));
|
||||
//error_log(__METHOD__.__LINE__.':'.$nodeID.'->'.array2string($fetchCounters));
|
||||
$data = $this->getFolderTree($fetchCounters, $nodeID, $subscribedOnly);
|
||||
error_log(__METHOD__.__LINE__.':'.$nodeID.'->'.array2string($data));
|
||||
//error_log(__METHOD__.__LINE__.':'.$nodeID.'->'.array2string($data));
|
||||
if (!is_null($_nodeID)) return $data;
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($data);
|
||||
@ -3966,7 +3966,7 @@ blockquote[type=cite] {
|
||||
*/
|
||||
function ajax_copyMessages($_folderName, $_messageList, $_copyOrMove='copy')
|
||||
{
|
||||
if(mail_bo::$debug); error_log(__METHOD__."->".$_folderName.':'.print_r($_messageList,true).' Method:'.$_copyOrMove);
|
||||
if(mail_bo::$debug) error_log(__METHOD__."->".$_folderName.':'.print_r($_messageList,true).' Method:'.$_copyOrMove);
|
||||
$_folderName = $this->mail_bo->decodeEntityFolderName($_folderName);
|
||||
// only copy or move are supported as method
|
||||
if (!($_copyOrMove=='copy' || $_copyOrMove=='move')) $_copyOrMove='copy';
|
||||
|
Loading…
Reference in New Issue
Block a user