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:
cinap_lenrek 2013-08-27 00:34:17 +02:00
parent 43d3c87294
commit d76eccaf88

View file

@ -1072,7 +1072,7 @@ searchUCmd(char *tg, char *cmd, int uids)
if(uids)
uid = "uid ";
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){
Bprint(&bout, "%s NO [BADCHARSET] (\"US-ASCII\" \"UTF-8\") %s%s failed\r\n", tg, uid, cmd);
checkBox(selected, 0);