Commit 94e912d6 authored by skummer's avatar skummer

- reverted: commit r1389 to execute a ImportMessageReadFlag() on 6.40...

- reverted: commit r1389 to execute a ImportMessageReadFlag() on 6.40 (CheckMapiExtVersion() was also incorrect)
- added: the read flag will be also be sent when executing ImportMessageChange(). This way the read flag is always updated, also in ZCP 6.40.

git-svn-id: https://z-push.org/svn/z-push/trunk@1411 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 298b6dce
......@@ -112,12 +112,8 @@ class ImportChangesStream implements IImportChanges {
else {
// on update of an SyncEmail we only export the flags
if($message instanceof SyncMail && isset($message->flag) && $message->flag instanceof SyncMailFlags) {
if (Utils::CheckMapiExtVersion('6.40')) {
ZLog::Write(LOGLEVEL_DEBUG, "ImportChangesStream->ImportMessageChange(): canceled and switched to ImportMessageReadFlag() to support ZCP 6.40 read flag updates. See ZP-183 for details.");
$this->ImportMessageReadFlag($id, $message->read);
return true;
}
$newmessage = new SyncMail();
$newmessage->read = $message->read;
$newmessage->flag = $message->flag;
$message = $newmessage;
unset($newmessage);
......
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