Skip to content

Commit

Permalink
Check for this, and log it so we know if we find a client that suppor…
Browse files Browse the repository at this point in the history
…ts it.
  • Loading branch information
mrubinsk committed Jan 16, 2016
1 parent e9c4a2d commit 5e3b4d5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -1926,6 +1926,25 @@ public function changeMessage($folderid, $id, Horde_ActiveSync_Message_Base $mes
'categories' => false
);

// Check for draft sync. @todo Not yet implemented since there
// are currently no available clients that support this to
// test and reverse engineer.
if ($this->_version >= Horde_ActiveSync::VERSION_SIXTEEN && !$id) {
if ($message->send) {
// @todo. Need a client that supports this to test.
$this->_logger->err('NOT YET SUPPORTED.');
return $stat;
}
// If some non-flag related property is set, we must be
// setting a draft. Should probably sanity check the folder
// type too. @todo Need a client that actually does this
// in order to see exactly what is sent.
if ($message->to) {
$this->_logger->err('NOT YET SUPPORTED.');
return $stat;
}
}

if ($message->read !== '') {
$this->setReadFlag($folderid, $id, $message->read);
$stat['flags'] = array_merge($stat['flags'], array('read' => $message->read));
Expand Down

0 comments on commit 5e3b4d5

Please sign in to comment.