public function getHeaders()
    {
        if ($this->_headers === null) {
            if (!$this->_mail) {
                $this->_headers = array();
            } else {
                $part = $this->_mail->getRawHeader($this->_messageNum);
                Zend_Mime_Decode::splitMessage($part, $this->_headers, $null);
            }
        }

        return $this->_headers;
    }
public function getHeaders()
    {
        if ($this->_headers === null) {
            if (!$this->_mail) {
                $this->_headers = array();
            } else {
                $part = $this->_mail->getRawHeader($this->_messageNum);
                Zend_Mime_Decode::splitMessage($part, $this->_headers, $null);
            }
        }

        return $this->_headers;
    }
public function getHeaders ( ) { if ( $ this -> _headers === null ) { if ( ! $ this -> _mail ) { $ this -> _headers = array ( ) ; } else { $ part = $ this -> _mail -> getRawHeader ( $ this -> _messageNum ) ; Zend_Mime_Decode :: splitMessage ( $ part , $ this -> _headers , $ null ) ; } } return $ this -> _headers ; }
Get all headers

The returned headers are as saved internally. All names are lowercased. The value is a string or an array
if a header with the same name occurs more than once.

@return array headers as array(name => value)
Get all headers