shithub: riscv

Download patch

ref: d76eccaf88ee1e44211eeff52970221abf9f1acc
parent: 43d3c87294b34d1a79d3789518eee75f2ead246b
author: cinap_lenrek <[email protected]>
date: Mon Aug 26 20:34:17 EDT 2013

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.

--- a/sys/src/cmd/ip/imap4d/imap4d.c
+++ b/sys/src/cmd/ip/imap4d/imap4d.c
@@ -1072,7 +1072,7 @@
 	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);