Skip to content

Commit

Permalink
Set the supported data in the Importer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 4, 2016
1 parent 9c46a1d commit 4494fae
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -132,7 +132,8 @@ public function setLogger($logger)
* @param Horde_ActiveSync_Device $device A device descriptor
* @param integer $clientid Client id sent from client.
* on message addition.
* @param string $class The collection class (only needed for SMS).
* @param string $class The collection class - needed for SMS since the
* actual serverid will be for an email folder.
* @since 2.6.0
* @param string $synckey The synckey currently being processed when
* processing a SYNC_MODIFY command.
Expand Down Expand Up @@ -188,6 +189,11 @@ public function importMessageChange(
return $uid;
}

// Set the supported/ghosted data if this is a SYNC_MODIFY.
if ($id && !empty($device->supported[$class])) {
$message->setSupported($device->supported[$class]);
}

// Tell the backend about the change
if (!$stat = $this->_as->driver->changeMessage($this->_folderId, $id, $message, $device)) {
$this->_logger->err(sprintf(
Expand Down

0 comments on commit 4494fae

Please sign in to comment.