public function __construct($in)
{
if ($in instanceof Horde_Mime_Part) {
$this->_message = $in;
} else {
$this->_indices = $in;
/* Get the Horde_Mime_Part object for the given UID. */
$query = new Horde_Imap_Client_Fetch_Query();
$query->structure();
if (!($ret = $this->_fetchData($query))) {
$e = new IMP_Exception(_("Error displaying message: message does not exist on server."));
$e->setLogLevel('NOTICE');
throw $e;
}
$this->_message = $ret->getStructure();
}
}