public function setHeaders($label, $data)
    {
        if ($data instanceof Horde_Stream) {
            $data = $data->stream;
        }
        $this->_data[Horde_Imap_Client::FETCH_HEADERS][$label] = $data;
    }
public function setHeaders($label, $data)
    {
        if ($data instanceof Horde_Stream) {
            $data = $data->stream;
        }
        $this->_data[Horde_Imap_Client::FETCH_HEADERS][$label] = $data;
    }
public function setHeaders ( $ label , $ data ) { if ( $ data instanceof Horde_Stream ) { $ data = $ data -> stream ; } $ this -> _data [ Horde_Imap_Client :: FETCH_HEADERS ] [ $ label ] = $ data ; }
Set a header entry.

@param string $label  The search label.
@param mixed $data    Either a Horde_Mime_Headers object or the raw
header text.
Set a header entry .