Skip to content

Commit

Permalink
Add EAS 16.0 to headers and base server object.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 15, 2016
1 parent b6400cf commit cfbfdc0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions framework/ActiveSync/lib/Horde/ActiveSync.php
Expand Up @@ -274,6 +274,7 @@ class Horde_ActiveSync
const VERSION_TWELVEONE = '12.1';
const VERSION_FOURTEEN = '14.0';
const VERSION_FOURTEENONE = '14.1';
const VERSION_SIXTEEN = '16.0';

const MIME_SUPPORT_NONE = 0;
const MIME_SUPPORT_SMIME = 1;
Expand Down Expand Up @@ -318,7 +319,7 @@ class Horde_ActiveSync
*
* @var float
*/
protected $_maxVersion = self::VERSION_FOURTEENONE;
protected $_maxVersion = self::VERSION_SIXTEEN;

/**
* The actual version we are supporting.
Expand Down Expand Up @@ -413,7 +414,8 @@ class Horde_ActiveSync
self::VERSION_TWELVE,
self::VERSION_TWELVEONE,
self::VERSION_FOURTEEN,
self::VERSION_FOURTEENONE
self::VERSION_FOURTEENONE,
self::VERSION_SIXTEEN
);

/**
Expand Down Expand Up @@ -958,7 +960,10 @@ public function activeSyncHeader()
header('MS-Server-ActiveSync: 14.0');
break;
case self::VERSION_FOURTEENONE:
header('MS-Server-ActiveSync: 14.2');
header('MS-Server-ActiveSync: 14.1');
break;
case self::VERSION_SIXTEEN:
header('MS-Server-ActiveSync: 16.0');
}
}

Expand Down Expand Up @@ -1005,6 +1010,7 @@ public function getSupportedCommands()
case self::VERSION_TWELVEONE:
case self::VERSION_FOURTEEN:
case self::VERSION_FOURTEENONE:
case self::VERSION_SIXTEEN:
return 'Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,CreateCollection,DeleteCollection,MoveCollection,FolderSync,FolderCreate,FolderDelete,FolderUpdate,MoveItems,GetItemEstimate,MeetingResponse,Search,Settings,Ping,ItemOperations,Provision,ResolveRecipients,ValidateCert';
}
}
Expand Down

0 comments on commit cfbfdc0

Please sign in to comment.