Exemple #1
0
 /**
  * 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  $messageUniqueId
  * @param Imap $mailbox
  */
 public function __construct($messageUniqueId, Server $mailbox)
 {
     $this->imapConnection = $mailbox;
     $this->uid = $messageUniqueId;
     $this->imapStream = $this->imapConnection->getImapStream();
     $this->loadMessage();
 }