Cully.
/*
- * Copyright (C) 2000-1 Brendan Cully <brendan@kublai.com>
+ * Copyright (C) 2000-2 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
if (mutt_bit_isset (idata->capabilities, AUTH_ANON) &&
(!idata->conn->account.user[0] ||
- !mutt_strncmp (idata->conn->account.user, "anonymous", 9)))
+ !ascii_strncmp (idata->conn->account.user, "anonymous", 9)))
rc = sasl_client_start (saslconn, "AUTH=ANONYMOUS", NULL, NULL, &pc, &olen,
&mech);
}
/*
* 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
}
}
}
- while (mutt_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN));
+ while (ascii_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN));
}
/* if we're descending a folder, mark it as current in browser_state */
isparent);
}
}
- while ((mutt_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0));
+ while ((ascii_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0));
FREE (&mx.mbox);
return 0;
for (type = IMAP_NS_PERSONAL; *s; type++)
{
s = imap_next_word (s);
- if (*s && strncmp (s, "NIL", 3))
+ if (ascii_strncasecmp (s, "NIL", 3))
{
s++;
while (*s && *s != ')')
return -1;
nsi->listable |= (name != NULL);
}
- while ((mutt_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0));
+ while ((ascii_strncmp (idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0));
}
return 0;
/*
* 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
}
/* 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;
/*
* 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
if (imap_cmd_step (idata) != IMAP_CMD_CONTINUE)
goto bail;
- if (mutt_strncmp ("* OK", idata->cmd.buf, 4) == 0)
+ if (ascii_strncasecmp ("* OK", idata->cmd.buf, 4) == 0)
{
/* TODO: Parse new tagged CAPABILITY data (* OK [CAPABILITY...]) */
if (imap_check_capabilities (idata))
dprint (2, (debugfile, "Communication encrypted at %d bits\n",
idata->conn->ssf));
}
- else if (mutt_strncmp ("* PREAUTH", idata->cmd.buf, 9) == 0)
+ else if (ascii_strncasecmp ("* PREAUTH", idata->cmd.buf, 9) == 0)
{
if (imap_check_capabilities (idata) != 0)
goto bail;
goto fail;
/* check for READ-ONLY notification */
- if (!strncmp (imap_get_qualifier (idata->cmd.buf), "[READ-ONLY]", 11))
+ if (!ascii_strncasecmp (imap_get_qualifier (idata->cmd.buf), "[READ-ONLY]", 11))
{
dprint (2, (debugfile, "Mailbox is read-only.\n"));
ctx->readonly = 1;
*/
if (mutt_strcmp (mbox_unquoted, idata->mailbox) == 0
- || (mutt_strcasecmp (mbox_unquoted, "INBOX") == 0
+ || (ascii_strcasecmp (mbox_unquoted, "INBOX") == 0
&& mutt_strcasecmp (mbox_unquoted, idata->mailbox) == 0))
{
strfcpy (buf, "NOOP", sizeof (buf));
return 0;
s = imap_next_word (s); /* delim */
/* Reset the delimiter, this can change */
- if (strncmp (s, "NIL", 3))
+ if (ascii_strncmp (s, "NIL", 3))
{
if (s && s[0] == '\"' && s[1] && s[2] == '\"')
*delim = s[1];
completions++;
}
}
- while (mutt_strncmp(idata->cmd.seq, idata->cmd.buf, SEQLEN));
+ while (ascii_strncmp(idata->cmd.seq, idata->cmd.buf, SEQLEN));
if (completions)
{
/*
* 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
if (rc == -2)
{
/* bail out if command failed for reasons other than nonexistent target */
- if (strncmp (imap_get_qualifier (idata->cmd.buf), "[TRYCREATE]", 11))
+ if (ascii_strncasecmp (imap_get_qualifier (idata->cmd.buf), "[TRYCREATE]", 11))
{
imap_error ("imap_copy_messages", idata->cmd.buf);
goto fail;
/*
* 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
mx->account.flags |= M_ACCT_PORT;
if (sscanf (tmp, "/%s", tmp) == 1)
{
- if (!strncmp (tmp, "ssl", 3))
+ if (!ascii_strncmp (tmp, "ssl", 3))
mx->account.flags |= M_ACCT_SSL;
else
{