From fc90df3e48b45e671b8322b11efa8247f0b5525a Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 26 Feb 2002 10:37:08 +0000 Subject: [PATCH] CAPA response tags are case-insensitive. Noted by Michael Vore, patch from Vsevolod Volkov. --- pop_lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pop_lib.c b/pop_lib.c index b38d7d05..b9c9f17d 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; -- 2.50.1