Exemplo n.º 1
0
 /**
  * Return a (decoded) message header
  *
  * @param string $name Header name
  * @param bool   $row  Don't mime-decode the value
  * @return string Header value
  */
 public function get_header($name, $raw = false)
 {
     if ($this->headers->{$name}) {
         $value = $this->headers->{$name};
     } else {
         if ($this->headers->others[$name]) {
             $value = $this->headers->others[$name];
         }
     }
     return $raw ? $value : $this->imap->decode_header($value);
 }