]> granicus.if.org Git - neomutt/commitdiff
CAPA response tags are case-insensitive. Noted by Michael Vore,
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 26 Feb 2002 10:37:08 +0000 (10:37 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 26 Feb 2002 10:37:08 +0000 (10:37 +0000)
patch from Vsevolod Volkov.

pop_lib.c

index b38d7d05d49c9ad667228c0fd46e59e09db1e0f4..b9c9f17d35f202bbeb1e6ecd54e1b0c0afd7818a 100644 (file)
--- a/pop_lib.c
+++ b/pop_lib.c
@@ -83,20 +83,20 @@ static int fetch_capa (char *line, void *data)
   POP_DATA *pop_data = (POP_DATA *)data;
   char *c;
 
-  if (!mutt_strncmp (line, "SASL", 4))
+  if (!ascii_strncasecmp (line, "SASL", 4))
   {
     c = line + 4;
     SKIPWS (c);
     pop_data->auth_list = safe_strdup (c);
   }
 
-  else if (!mutt_strncmp (line, "USER", 4))
+  else if (!ascii_strncasecmp (line, "USER", 4))
     pop_data->cmd_user = 1;
 
-  else if (!mutt_strncmp (line, "UIDL", 4))
+  else if (!ascii_strncasecmp (line, "UIDL", 4))
     pop_data->cmd_uidl = 1;
 
-  else if (!mutt_strncmp (line, "TOP", 3))
+  else if (!ascii_strncasecmp (line, "TOP", 3))
     pop_data->cmd_top = 1;
 
   return 0;