Commit fc90df3e authored by Thomas Roessler's avatar Thomas Roessler

CAPA response tags are case-insensitive. Noted by Michael Vore,

patch from Vsevolod Volkov.
parent bee5b805
...@@ -83,20 +83,20 @@ static int fetch_capa (char *line, void *data) ...@@ -83,20 +83,20 @@ static int fetch_capa (char *line, void *data)
POP_DATA *pop_data = (POP_DATA *)data; POP_DATA *pop_data = (POP_DATA *)data;
char *c; char *c;
if (!mutt_strncmp (line, "SASL", 4)) if (!ascii_strncasecmp (line, "SASL", 4))
{ {
c = line + 4; c = line + 4;
SKIPWS (c); SKIPWS (c);
pop_data->auth_list = safe_strdup (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; pop_data->cmd_user = 1;
else if (!mutt_strncmp (line, "UIDL", 4)) else if (!ascii_strncasecmp (line, "UIDL", 4))
pop_data->cmd_uidl = 1; pop_data->cmd_uidl = 1;
else if (!mutt_strncmp (line, "TOP", 3)) else if (!ascii_strncasecmp (line, "TOP", 3))
pop_data->cmd_top = 1; pop_data->cmd_top = 1;
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment