Commit 7074bf15 authored by skummer's avatar skummer

ZP-272 #comment get contentparameters from folder sync state and configure...

ZP-272 #comment get contentparameters from folder sync state and configure importer to perform sync interval check #time 1h

git-svn-id: https://z-push.org/svn/z-push/trunk@1593 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 064b4884
...@@ -103,6 +103,12 @@ class MoveItems extends RequestProcessor { ...@@ -103,6 +103,12 @@ class MoveItems extends RequestProcessor {
if ($importer === false) if ($importer === false)
throw new StatusException(sprintf("HandleMoveItems() could not get an importer for folder id '%s'", $move["srcfldid"]), SYNC_MOVEITEMSSTATUS_INVALIDSOURCEID); throw new StatusException(sprintf("HandleMoveItems() could not get an importer for folder id '%s'", $move["srcfldid"]), SYNC_MOVEITEMSSTATUS_INVALIDSOURCEID);
// get saves SyncParameters for this folder
$spa = self::$deviceManager->GetStateManager()->GetSynchedFolderState($move["srcfldid"]);
if (!$spa->HasSyncKey())
throw new StatusException(sprintf("MoveItems(): Source folder id '%s' is not fully synchronized. Unable to perform operation.", $move["srcfldid"]), SYNC_MOVEITEMSSTATUS_INVALIDSOURCEID);
$importer->ConfigContentParameters($spa->GetCPO());
$result = $importer->ImportMessageMove($move["srcmsgid"], $move["dstfldid"]); $result = $importer->ImportMessageMove($move["srcmsgid"], $move["dstfldid"]);
// We discard the importer state for now. // We discard the importer state for now.
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment