public function &__get($property)
{
switch ($property) {
case 'envelope':
$e = $this->_data->getEnvelope();
return $e;
case 'flags':
$f = $this->_data->getFlags();
return $f;
case 'uid':
$u = $this->_data->getUid();
return $u;
case 'basePart':
if (empty($this->_basePart)) {
$this->_basePart = new Horde_ActiveSync_Mime($this->_data->getStructure());
}
return $this->_basePart;
}
throw new InvalidArgumentException(sprintf('The property %s of Horde_ActiveSync_Imap_Message does not exist', $property));
}