summaryrefslogtreecommitdiffstats
path: root/imap/command.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-01-13 21:16:34 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-01-13 21:16:34 +0000
commit3f3de7b5f533423c0f2e4179dc1c8e2cd512da94 (patch)
tree5ff09a1571a948a8c6dab80a91446ea9510dd5d7 /imap/command.c
parent67f9d2244edd36bff6d69c2cdab7fd45c0d8e0fb (diff)
Parse IMAP responses locale- and case- insensitive. From Brendan
Cully.
Diffstat (limited to 'imap/command.c')
-rw-r--r--imap/command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/imap/command.c b/imap/command.c
index ed01d432..2d475bf6 100644
--- a/imap/command.c
+++ b/imap/command.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu>
* Copyright (C) 1996-9 Brandon Long <blong@fiction.net>
- * Copyright (C) 1999-2001 Brendan Cully <brendan@kublai.com>
+ * Copyright (C) 1999-2002 Brendan Cully <brendan@kublai.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -135,18 +135,18 @@ int imap_cmd_step (IMAP_DATA* idata)
}
/* handle untagged messages. The caller still gets its shot afterwards. */
- if (!strncmp (cmd->buf, "* ", 2) &&
+ if (!ascii_strncmp (cmd->buf, "* ", 2) &&
cmd_handle_untagged (idata))
return IMAP_CMD_BAD;
/* server demands a continuation response from us */
- if (!strncmp (cmd->buf, "+ ", 2))
+ if (!ascii_strncmp (cmd->buf, "+ ", 2))
{
return IMAP_CMD_RESPOND;
}
/* tagged completion code */
- if (!mutt_strncmp (cmd->buf, cmd->seq, SEQLEN))
+ if (!ascii_strncmp (cmd->buf, cmd->seq, SEQLEN))
{
imap_cmd_finish (idata);
return imap_code (cmd->buf) ? IMAP_CMD_OK : IMAP_CMD_NO;