From: Thomas Roessler Date: Tue, 26 Feb 2002 10:37:08 +0000 (+0000) Subject: CAPA response tags are case-insensitive. Noted by Michael Vore, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35ccde472deb0f253e94b02f833518ebde1ea040;p=neomutt CAPA response tags are case-insensitive. Noted by Michael Vore, patch from Vsevolod Volkov. --- diff --git a/pop_lib.c b/pop_lib.c index b38d7d05d..b9c9f17d3 100644 --- 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;