public function headerText($header, $text, $not = false,
                                array $opts = array())
    {
        if (!isset($this->_search['header'])) {
            $this->_search['header'] = array();
        }
        $this->_search['header'][] = array_filter(array(
            'fuzzy' => !empty($opts['fuzzy']),
            'header' => Horde_String::upper($header),
            'text' => $text,
            'not' => $not
        ));
    }
public function headerText($header, $text, $not = false,
                                array $opts = array())
    {
        if (!isset($this->_search['header'])) {
            $this->_search['header'] = array();
        }
        $this->_search['header'][] = array_filter(array(
            'fuzzy' => !empty($opts['fuzzy']),
            'header' => Horde_String::upper($header),
            'text' => $text,
            'not' => $not
        ));
    }
public function headerText ( $ header , $ text , $ not = false , array $ opts = array ( ) ) { if ( ! isset ( $ this -> _search [ 'header' ] ) ) { $ this -> _search [ 'header' ] = array ( ) ; } $ this -> _search [ 'header' ] [ ] = array_filter ( array ( 'fuzzy' => ! empty ( $ opts [ 'fuzzy' ] ) , 'header' => Horde_String :: upper ( $ header ) , 'text' => $ text , 'not' => $ not ) ) ; }
Search for text in the header of a message.

@param string $header  The header field.
@param string $text    The search text.
@param boolean $not    If true, do a 'NOT' search of $text.
@param array $opts     Additional options:
- fuzzy: (boolean) If true, perform a fuzzy search. The IMAP server
MUST support RFC 6203.
Search for text in the header of a message .