Commit 1442f7b1 authored by mku's avatar mku

ZP-379 #comment Reply/Forward flags are not synced from the server to the...

ZP-379 #comment Reply/Forward flags are not synced from the server to the mobile - function to convert to AS-style last verb executed value from the server value  #time 20m

git-svn-id: https://z-push.org/svn/z-push/trunk@1668 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 3471c396
......@@ -184,6 +184,8 @@ class MAPIMapping {
// "threadtopic" => PR_CONVERSATION_TOPIC,
"internetcpid" => PR_INTERNET_CPID,
"nativebodytype" => PR_NATIVE_BODY_INFO,
"lastverbexecuted" => PR_LAST_VERB_EXECUTED,
"lastverbexectime" => PR_LAST_VERB_EXECUTION_TIME,
);
}
......
......@@ -740,6 +740,11 @@ class MAPIProvider {
$message->contentclass = DEFAULT_EMAIL_CONTENTCLASS;
if (!isset($message->nativebodytype)) $message->nativebodytype = $this->getNativeBodyType($messageprops);
// reply, reply to all, forward flags
if (isset($message->lastverbexecuted) && $message->lastverbexecuted) {
$message->lastverbexecuted = Utils::GetLastVerbExecuted($message->lastverbexecuted);
}
return $message;
}
......
......@@ -116,6 +116,8 @@ class ImportChangesStream implements IImportChanges {
$newmessage = new SyncMail();
$newmessage->read = $message->read;
$newmessage->flag = $message->flag;
if (isset($message->lastverbexectime)) $newmessage->lastverbexectime = $message->lastverbexectime;
if (isset($message->lastverbexecuted)) $newmessage->lastverbexecuted = $message->lastverbexecuted;
$message = $newmessage;
unset($newmessage);
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ImportChangesStream->ImportMessageChange('%s'): SyncMail message updated. Message content is striped, only flags are streamed.", $id));
......
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