imap4d: apply djc's patch to fix search (from /n/sources/patch/imap4d-cistrcmp)
Fix SEARCH command in imap4d by replacing the cistrstr typo with cistrcmp.
This commit is contained in:
parent
43d3c87294
commit
d76eccaf88
1 changed files with 1 additions and 1 deletions
|
@ -1072,7 +1072,7 @@ searchUCmd(char *tg, char *cmd, int uids)
|
||||||
if(uids)
|
if(uids)
|
||||||
uid = "uid ";
|
uid = "uid ";
|
||||||
if(rock.next != nil && rock.next->key == SKCharset){
|
if(rock.next != nil && rock.next->key == SKCharset){
|
||||||
if(cistrstr(rock.next->s, "utf-8") != 0
|
if(cistrcmp(rock.next->s, "utf-8") != 0
|
||||||
&& cistrcmp(rock.next->s, "us-ascii") != 0){
|
&& cistrcmp(rock.next->s, "us-ascii") != 0){
|
||||||
Bprint(&bout, "%s NO [BADCHARSET] (\"US-ASCII\" \"UTF-8\") %s%s failed\r\n", tg, uid, cmd);
|
Bprint(&bout, "%s NO [BADCHARSET] (\"US-ASCII\" \"UTF-8\") %s%s failed\r\n", tg, uid, cmd);
|
||||||
checkBox(selected, 0);
|
checkBox(selected, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue