{
char *eptr;
- if (mutt_strncasecmp (s, "bright", 6) == 0)
+ if (ascii_strncasecmp (s, "bright", 6) == 0)
{
*attr |= brite;
s += 6;
}
/* allow aliases for xterm color resources */
- if (mutt_strncasecmp (s, "color", 5) == 0)
+ if (ascii_strncasecmp (s, "color", 5) == 0)
{
s += 5;
*col = strtol (s, &eptr, 10);
convert_to_7bit (a->parts);
}
else if (a->type == TYPEMESSAGE &&
- mutt_strcasecmp(a->subtype, "delivery-status"))
+ ascii_strcasecmp(a->subtype, "delivery-status"))
{
if(a->encoding != ENC7BIT)
mutt_message_to_7bit (a, NULL);
if ((WithCrypto & APPLICATION_PGP)
&& protocol_major == TYPEAPPLICATION
- && !mutt_strcasecmp (protocol_minor, "pgp-signature"))
+ && !ascii_strcasecmp (protocol_minor, "pgp-signature"))
;
else if ((WithCrypto & APPLICATION_SMIME)
&& protocol_major == TYPEAPPLICATION
- && !(mutt_strcasecmp (protocol_minor, "x-pkcs7-signature")
- && mutt_strcasecmp (protocol_minor, "pkcs7-signature")))
+ && !(ascii_strcasecmp (protocol_minor, "x-pkcs7-signature")
+ && ascii_strcasecmp (protocol_minor, "pkcs7-signature")))
;
else if (protocol_major == TYPEMULTIPART
- && !mutt_strcasecmp (protocol_minor, "mixed"))
+ && !ascii_strcasecmp (protocol_minor, "mixed"))
;
else
{
{
if ((WithCrypto & APPLICATION_PGP)
&& signatures[i]->type == TYPEAPPLICATION
- && !mutt_strcasecmp (signatures[i]->subtype, "pgp-signature"))
+ && !ascii_strcasecmp (signatures[i]->subtype, "pgp-signature"))
{
if (crypt_pgp_verify_one (signatures[i], s, tempfile) != 0)
goodsig = 0;
if ((WithCrypto & APPLICATION_SMIME)
&& signatures[i]->type == TYPEAPPLICATION
- && (!mutt_strcasecmp(signatures[i]->subtype, "x-pkcs7-signature")
- || !mutt_strcasecmp(signatures[i]->subtype, "pkcs7-signature")))
+ && (!ascii_strcasecmp(signatures[i]->subtype, "x-pkcs7-signature")
+ || !ascii_strcasecmp(signatures[i]->subtype, "pkcs7-signature")))
{
if (crypt_smime_verify_one (signatures[i], s, tempfile) != 0)
goodsig = 0;
handler = mutt_signed_handler;
}
else if ((WithCrypto & APPLICATION_PGP)
- && mutt_strcasecmp ("encrypted", b->subtype) == 0)
+ && ascii_strcasecmp ("encrypted", b->subtype) == 0)
{
p = mutt_get_parameter ("protocol", b->parameter);
a = safe_malloc(sizeof(ATTACH_MATCH));
/* some cheap hacks that I expect to remove */
- if (!mutt_strcasecmp(buf->data, "any"))
+ if (!ascii_strcasecmp(buf->data, "any"))
a->major = safe_strdup("*/.*");
- else if (!mutt_strcasecmp(buf->data, "none"))
+ else if (!ascii_strcasecmp(buf->data, "none"))
a->major = safe_strdup("cheap_hack/this_should_never_match");
else
a->major = safe_strdup(buf->data);
{
mutt_extract_token (buf, s, 0);
- if (!mutt_strcasecmp(buf->data, "any"))
+ if (!ascii_strcasecmp(buf->data, "any"))
tmp = safe_strdup("*/.*");
- else if (!mutt_strcasecmp(buf->data, "none"))
+ else if (!ascii_strcasecmp(buf->data, "none"))
tmp = safe_strdup("cheap_hack/this_should_never_match");
else
tmp = safe_strdup(buf->data);
op = '+';
category--;
}
- if (!mutt_strncasecmp(category, "attachment", strlen(category))) {
+ if (!ascii_strncasecmp(category, "attachment", strlen(category))) {
if (op == '+')
listp = &AttachAllow;
else
listp = &AttachExclude;
}
- else if (!mutt_strncasecmp(category, "inline", strlen(category))) {
+ else if (!ascii_strncasecmp(category, "inline", strlen(category))) {
if (op == '+')
listp = &InlineAllow;
else
op = '+';
p--;
}
- if (!mutt_strncasecmp(p, "attachment", strlen(p))) {
+ if (!ascii_strncasecmp(p, "attachment", strlen(p))) {
if (op == '+')
listp = &AttachAllow;
else
listp = &AttachExclude;
}
- else if (!mutt_strncasecmp(p, "inline", strlen(p))) {
+ else if (!ascii_strncasecmp(p, "inline", strlen(p))) {
if (op == '+')
listp = &InlineAllow;
else
{
/* Always recurse multiparts, except multipart/alternative. */
shallrecurse = 1;
- if (!mutt_strcasecmp(bp->subtype, "alternative"))
+ if (!ascii_strcasecmp(bp->subtype, "alternative"))
shallrecurse = 0;
/* Don't count containers if they're top-level. */
rewind (smimeerr);
line = mutt_read_line (line, &linelen, smimeerr, &lineno);
- if (linelen && !mutt_strcasecmp (line, "verification successful"))
+ if (linelen && !ascii_strcasecmp (line, "verification successful"))
badsig = 0;
FREE (&line);
rewind (smimeerr);
line = mutt_read_line (line, &linelen, smimeerr, &lineno);
- if (linelen && !mutt_strcasecmp (line, "verification successful"))
+ if (linelen && !ascii_strcasecmp (line, "verification successful"))
m->goodsig = 1;
FREE (&line);
}