Commit 10837b80 10837b80e19e0a8eb43bf8559bcdce61263de1a8 by Sergey Poznyakoff

(imap4d_search0): Use case-insensitive comparison

1 parent 27dfc1db
...@@ -224,7 +224,7 @@ imap4d_search0 (char *arg, int isuid, char *replybuf, size_t replysize) ...@@ -224,7 +224,7 @@ imap4d_search0 (char *arg, int isuid, char *replybuf, size_t replysize)
224 } 224 }
225 225
226 /* Currently only ASCII is supported */ 226 /* Currently only ASCII is supported */
227 if (strcmp (parsebuf.token, "US-ASCII")) 227 if (strcasecmp (parsebuf.token, "US-ASCII"))
228 { 228 {
229 snprintf (replybuf, replysize, "Charset not supported"); 229 snprintf (replybuf, replysize, "Charset not supported");
230 return RESP_NO; 230 return RESP_NO;
......
...@@ -47,7 +47,7 @@ status_get_handler (const char *name) ...@@ -47,7 +47,7 @@ status_get_handler (const char *name)
47 struct status_table *p; 47 struct status_table *p;
48 48
49 for (p = status_table; p->name; p++) 49 for (p = status_table; p->name; p++)
50 if (strcmp (p->name, name) == 0) 50 if (strcasecmp (p->name, name) == 0)
51 return p->fun; 51 return p->fun;
52 return NULL; 52 return NULL;
53 } 53 }
......