Skip to content

Commit

Permalink
Support for PRIMARYSMTPADDRESS
Browse files Browse the repository at this point in the history
Request: 13062
  • Loading branch information
mrubinsk committed Mar 25, 2014
1 parent cc382b2 commit 246d8e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/Request/Settings.php
Expand Up @@ -77,6 +77,9 @@ class Horde_ActiveSync_Request_Settings extends Horde_ActiveSync_Request_Base
const OOF_STATE_ENABLED = 1;
const OOF_STATE_DISABLED = 0;

/** 14.1 **/
const SETTINGS_PRIMARYSMTPADDRESS = 'Settings:PrimarySmtpAddress';

/**
* Handle the request.
*
Expand Down Expand Up @@ -299,6 +302,16 @@ protected function _handle()
$this->_encoder->endTag(); // end self::SETTINGS_SMTPADDRESS
}
}

// Send primarysmtp address if we need to
if (!empty($result['get']['userinformation']['primarysmtpaddress']) &&
$this->_device->version >= Horde_ActiveSync::VERSION_FOURTEENONE) {

$this->_encoder->startTag(self::SETTINGS_PRIMARYSMTPADDRESS);
$this->_encoder->content($result['get']['userinformation']['primarysmtpaddress']);
$this->_encoder->endTag();
}

$this->_encoder->endTag(); // end self::SETTINGS_EMAILADDRESSES
$this->_encoder->endTag(); // end self::SETTINGS_GET
$this->_encoder->endTag(); // end self::SETTINGS_USERINFORMATION
Expand Down

0 comments on commit 246d8e8

Please sign in to comment.