/** * This function marks a message for deletion. It is important to note that the message will not be deleted form the * mailbox until the Imap->expunge it run. */ public function delete() { $this->imap->delete($this->imap_stream, $this->uid, FT_UID); }