Example #1
0
 /**
  * Set the raw message content received from the EAS client to send.
  *
  * @param Horde_ActiveSync_Rfc822 $raw  The data from the EAS client.
  */
 public function setRawMessage(Horde_ActiveSync_Rfc822 $raw)
 {
     $this->_headers = $raw->getHeaders();
     // Attempt to always use the identity's From address, but fall back
     // to the device's sent value if it's not present.
     $from = $this->_getIdentityFromAddress();
     if (!empty($from)) {
         $this->_headers->removeHeader('From');
         $this->_headers->addHeader('From', $from);
     }
     $this->_raw = $raw;
 }