src/IMAP/Query/Query.php
public function generate_query() {
        $query = '';
        $this->query->each(function($statement) use(&$query) {
            if (count($statement) == 1) {
                $query .= $statement[0];
            } else {
                if($statement[1] === null){
                    $query .= $statement[0];
                }else{
                    $query .= $statement[0].' "'.$statement[1].'"';
                }
            }
            $query .= ' ';

        });

        $this->raw_query = trim($query);

        return $this->raw_query;
    }
public function generate_query() {
        $query = '';
        $this->query->each(function($statement) use(&$query) {
            if (count($statement) == 1) {
                $query .= $statement[0];
            } else {
                if($statement[1] === null){
                    $query .= $statement[0];
                }else{
                    $query .= $statement[0].' "'.$statement[1].'"';
                }
            }
            $query .= ' ';

        });

        $this->raw_query = trim($query);

        return $this->raw_query;
    }
public function generate_query ( ) { $ query = '' ; $ this -> query -> each ( function ( $ statement ) use ( & $ query ) { if ( count ( $ statement ) == 1 ) { $ query .= $ statement [ 0 ] ; } else { if ( $ statement [ 1 ] === null ) { $ query .= $ statement [ 0 ] ; } else { $ query .= $ statement [ 0 ] . ' "' . $ statement [ 1 ] . '"' ; } } $ query .= ' ' ; } ) ; $ this -> raw_query = trim ( $ query ) ; return $ this -> raw_query ; }
Get the raw IMAP search query

@return string
Get the raw IMAP search query