/** * This constructor takes in the uid for the message and the Imap class representing the mailbox the * message should be opened from. This constructor should generally not be called directly, but rather retrieved * through the apprioriate Imap functions. * * @param int $message_unique_id * @param Imap $mailbox */ public function __construct($message_unique_id, Imap $mailbox) { $this->imap_connection = $mailbox; $this->uid = $message_unique_id; $this->imap_stream = $this->imap_connection->get_imap_stream(); $this->load_message(); }