Re: search problem using white spaces...

javier wilson <[email protected]>
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
I corrected the problem changing line 38 of functions/imap_search.php:

< $multi_search = explode(' ', $search_what);
> $multi_search = array( $search_what );

Of course this doesn't search "javier" *and* "wilson", but "javier wilson",
which is what I intended anyway.

In summary, I would say multi_search is broken in SM1.4.20rc2

Javier

2009/12/11 javier wilson <[email protected]>

> I'm using SM1.4.20rc2 and cyrus.
>
> Whenever I search for something let's say in the "From" header, using a
> word I have no problem, cyrus finds it inmedeatily.
> However, I a use two (or more) words, it takes a long time and I get:
> Connection terminated by IMAP server, "Query: SEARCH CHARSET ISO-8859-1 ALL
> FROM".
>
> I have disabled, charset search... same problem. If I do the search using
> telnet I have no problem either.
>
> For instance, searching "javier wilson": A06 UID SEARCH CHARSET
> "ISO-8859-1" ALL FROM "javier wilson"
> works fine using telnet. It does not work using Squirrelmail.
>
> Any ideas, anyone with a similar problem?
> Could it be because of " $multi_search = explode(' ', $search_what); "  in
> functions/imap_search.php ?
>

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.