ERROR : Could not complete request.
Query:SEARCH CHARSET ISO-8859-1 ALL SUBJECT {4} good
SUBJECT {4} luck
Reason Given: SEARCH failed: [BADCHARSET (US-ASCII UTF-
8 UTF-7 ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4
ISO-8859-5 ISO-8859-6 ISO-8859-7 ISO-8859-8 ISO-8859-9
ISO-8859-10 ISO-8859-11 ISO-8859-13 ISO-8859-14 ISO-
8859-15 KOI8-R KOI8-U KOI8-RU TIS-620 VISCII GB2312 CN-
GB ISO-2022-CN CN-GB-12345 BIG5 CN-BIG5 ISO-2022-JP
EUC-JP SHIFT_JIS SHIFT-JIS ISO-2022-JP-1 ISO-2022-JP-2
ISO-2022-KR EUC-KR)] Unknown charset: ISO-8859-1
I requested a fix to raise the search character set to
the same case thinking that was the problem in 1.2.5,
but when I got the new official 1.2.6 release it still
appears to have some sort of problem. Not sure if its
related to using quotes or if its a limitation of the
UW server. The characterset is clearly in the list of
available ones.
Version Information:
UW IMAP4rev1 v12.264.
Server version: Apache/1.3.24 (Unix) Debian GNU/Linux
Server built: Apr 15 2002 16:13:19
php4 v4.1.2
Logged In: YES
user_id=442854
Strange. Using UW on Debian unstable I dont get these
errors. Lots of people do have problems with charsets
however, so recently an option was added to CVS to use a
SEARCH function without a charset. Perhaps that will fix
this problem for you. Its the last option on menu 4 of conf.pl.
jason
jason@stdbev.com
Logged In: NO
Probelm is not related to quotes. The problem is in the
imap_search.php/sqimap_search function. The first time SM
tries to do a search command with the charset assigned to
the current language. If that fails it should try with US-
ASCII. However, the first sqimap_run_command never returns
because the $handle_errors=true, this should be false,
so:
/* Read Data Back From IMAP */
$readin = sqimap_run_command ($imapConnection, $ss,
true, $result, $message);
Should be:
/* Read Data Back From IMAP */
$readin = sqimap_run_command ($imapConnection, $ss,
false, $result, $message);
Logged In: YES
user_id=147248
Jason: what's the status of this?
Logged In: YES
user_id=442854
The requested change to imap_search is correct and commited
to CVS. Tested by setting my charset to ISO-BLAH, then the
search is retried with US-ASCII. This does not tell us why
UW on your Debian system does not allow you to search with a
supported charset (it works on my debian setup). Between
this fix and the ability to chose a search without charset
this bug report is being closed.
jason