Beispiel #1
0
 /**
  * This function returns an object containing the structure of the message body. This is the same object thats
  * returned by imap_fetchstructure. The results are only retrieved from the server once unless passed true as a
  * parameter.
  *
  * @param bool $force_reload
  *
  * @return \stdClass
  */
 public function getStructure($force_reload = false)
 {
     if ($force_reload || !isset($this->structure)) {
         $this->structure = $this->imap->fetchStructure($this->imap_stream, $this->uid, FT_UID);
     }
     return $this->structure;
 }