Commit 80759a21 authored by Sebastian Kummer's avatar Sebastian Kummer

Revert "Merge pull request #60 in ZP/z-push from...

Revert "Merge pull request #60 in ZP/z-push from bugfix/ZP-717-set-you-answered-this-message-on-date to develop"

This reverts commit fae25884.
parent 12e826fe
...@@ -510,25 +510,10 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -510,25 +510,10 @@ class BackendZarafa implements IBackend, ISearchProvider {
if(!isset($fwmessage) || !$fwmessage) if(!isset($fwmessage) || !$fwmessage)
throw new StatusException(sprintf("ZarafaBackend->SendMail(): Could not open message id '%s' in folder id '%s' to be replied/forwarded: 0x%X", $sm->source->itemid, $sm->source->folderid, mapi_last_hresult()), SYNC_COMMONSTATUS_ITEMNOTFOUND); throw new StatusException(sprintf("ZarafaBackend->SendMail(): Could not open message id '%s' in folder id '%s' to be replied/forwarded: 0x%X", $sm->source->itemid, $sm->source->folderid, mapi_last_hresult()), SYNC_COMMONSTATUS_ITEMNOTFOUND);
// update icon and last_verb when forwarding or replying message //update icon when forwarding or replying message
// reply-all (verb 103) is not supported, as we cannot really detect this case if ($sm->forwardflag) mapi_setprops($fwmessage, array(PR_ICON_INDEX=>262));
if ($sm->forwardflag) { elseif ($sm->replyflag) mapi_setprops($fwmessage, array(PR_ICON_INDEX=>261));
$updateProps = array( mapi_savechanges($fwmessage);
PR_ICON_INDEX => 262,
PR_LAST_VERB_EXECUTED => 104,
);
}
elseif ($sm->replyflag) {
$updateProps = array(
PR_ICON_INDEX => 261,
PR_LAST_VERB_EXECUTED => 102,
);
}
if (isset($updateProps)) {
$updateProps[PR_LAST_VERB_EXECUTION_TIME] = time();
mapi_setprops($fwmessage, $updateProps);
mapi_savechanges($fwmessage);
}
// only attach the original message if the mobile does not send it itself // only attach the original message if the mobile does not send it itself
if (!isset($sm->replacemime)) { if (!isset($sm->replacemime)) {
......
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