public function getImapMessage($mailbox, $uid, array $options = array())
{
if (!is_array($uid)) {
$uid = array($uid);
}
$mbox = new Horde_Imap_Client_Mailbox($mailbox);
// @todo H6 - expand the $options array the same as _getMailMessages()
// for now, always retrieve the envelope data as well.
$options['envelope'] = true;
$messages = $this->_getMailMessages($mbox, $uid, $options);
$res = array();
foreach ($messages as $id => $message) {
if ($message->exists(Horde_Imap_Client::FETCH_STRUCTURE)) {
$res[$id] = new Horde_ActiveSync_Imap_Message($this->_getImapOb(), $mbox, $message);
}
}
return $res;
}