Changeset 4490:9855b4b114ba
- Timestamp:
- 2005-12-16 10:49:40 (3 years ago)
- Author:
- Recai Oktas <roktas@…>
- Branch:
- HEAD
- Message:
-
Use ascii_str* instead of mutt_str* in several places where it's needed.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r4343
|
r4490
|
|
| 310 | 310 | char *eptr; |
| 311 | 311 | |
| 312 | | if (mutt_strncasecmp (s, "bright", 6) == 0) |
| | 312 | if (ascii_strncasecmp (s, "bright", 6) == 0) |
| 313 | 313 | { |
| 314 | 314 | *attr |= brite; |
| … |
… |
|
| 317 | 317 | |
| 318 | 318 | /* allow aliases for xterm color resources */ |
| 319 | | if (mutt_strncasecmp (s, "color", 5) == 0) |
| | 319 | if (ascii_strncasecmp (s, "color", 5) == 0) |
| 320 | 320 | { |
| 321 | 321 | s += 5; |
-
|
r4439
|
r4490
|
|
| 553 | 553 | } |
| 554 | 554 | else if (a->type == TYPEMESSAGE && |
| 555 | | mutt_strcasecmp(a->subtype, "delivery-status")) |
| | 555 | ascii_strcasecmp(a->subtype, "delivery-status")) |
| 556 | 556 | { |
| 557 | 557 | if(a->encoding != ENC7BIT) |
| … |
… |
|
| 809 | 809 | if ((WithCrypto & APPLICATION_PGP) |
| 810 | 810 | && protocol_major == TYPEAPPLICATION |
| 811 | | && !mutt_strcasecmp (protocol_minor, "pgp-signature")) |
| | 811 | && !ascii_strcasecmp (protocol_minor, "pgp-signature")) |
| 812 | 812 | ; |
| 813 | 813 | else if ((WithCrypto & APPLICATION_SMIME) |
| 814 | 814 | && protocol_major == TYPEAPPLICATION |
| 815 | | && !(mutt_strcasecmp (protocol_minor, "x-pkcs7-signature") |
| 816 | | && mutt_strcasecmp (protocol_minor, "pkcs7-signature"))) |
| | 815 | && !(ascii_strcasecmp (protocol_minor, "x-pkcs7-signature") |
| | 816 | && ascii_strcasecmp (protocol_minor, "pkcs7-signature"))) |
| 817 | 817 | ; |
| 818 | 818 | else if (protocol_major == TYPEMULTIPART |
| 819 | | && !mutt_strcasecmp (protocol_minor, "mixed")) |
| | 819 | && !ascii_strcasecmp (protocol_minor, "mixed")) |
| 820 | 820 | ; |
| 821 | 821 | else |
| … |
… |
|
| 841 | 841 | if ((WithCrypto & APPLICATION_PGP) |
| 842 | 842 | && signatures[i]->type == TYPEAPPLICATION |
| 843 | | && !mutt_strcasecmp (signatures[i]->subtype, "pgp-signature")) |
| | 843 | && !ascii_strcasecmp (signatures[i]->subtype, "pgp-signature")) |
| 844 | 844 | { |
| 845 | 845 | if (crypt_pgp_verify_one (signatures[i], s, tempfile) != 0) |
| … |
… |
|
| 851 | 851 | if ((WithCrypto & APPLICATION_SMIME) |
| 852 | 852 | && signatures[i]->type == TYPEAPPLICATION |
| 853 | | && (!mutt_strcasecmp(signatures[i]->subtype, "x-pkcs7-signature") |
| 854 | | || !mutt_strcasecmp(signatures[i]->subtype, "pkcs7-signature"))) |
| | 853 | && (!ascii_strcasecmp(signatures[i]->subtype, "x-pkcs7-signature") |
| | 854 | || !ascii_strcasecmp(signatures[i]->subtype, "pkcs7-signature"))) |
| 855 | 855 | { |
| 856 | 856 | if (crypt_smime_verify_one (signatures[i], s, tempfile) != 0) |
-
|
r4457
|
r4490
|
|
| 1844 | 1844 | } |
| 1845 | 1845 | else if ((WithCrypto & APPLICATION_PGP) |
| 1846 | | && mutt_strcasecmp ("encrypted", b->subtype) == 0) |
| | 1846 | && ascii_strcasecmp ("encrypted", b->subtype) == 0) |
| 1847 | 1847 | { |
| 1848 | 1848 | p = mutt_get_parameter ("protocol", b->parameter); |
-
|
r4418
|
r4490
|
|
| 835 | 835 | |
| 836 | 836 | /* some cheap hacks that I expect to remove */ |
| 837 | | if (!mutt_strcasecmp(buf->data, "any")) |
| | 837 | if (!ascii_strcasecmp(buf->data, "any")) |
| 838 | 838 | a->major = safe_strdup("*/.*"); |
| 839 | | else if (!mutt_strcasecmp(buf->data, "none")) |
| | 839 | else if (!ascii_strcasecmp(buf->data, "none")) |
| 840 | 840 | a->major = safe_strdup("cheap_hack/this_should_never_match"); |
| 841 | 841 | else |
| … |
… |
|
| 899 | 899 | mutt_extract_token (buf, s, 0); |
| 900 | 900 | |
| 901 | | if (!mutt_strcasecmp(buf->data, "any")) |
| | 901 | if (!ascii_strcasecmp(buf->data, "any")) |
| 902 | 902 | tmp = safe_strdup("*/.*"); |
| 903 | | else if (!mutt_strcasecmp(buf->data, "none")) |
| | 903 | else if (!ascii_strcasecmp(buf->data, "none")) |
| 904 | 904 | tmp = safe_strdup("cheap_hack/this_should_never_match"); |
| 905 | 905 | else |
| … |
… |
|
| 1002 | 1002 | category--; |
| 1003 | 1003 | } |
| 1004 | | if (!mutt_strncasecmp(category, "attachment", strlen(category))) { |
| | 1004 | if (!ascii_strncasecmp(category, "attachment", strlen(category))) { |
| 1005 | 1005 | if (op == '+') |
| 1006 | 1006 | listp = &AttachAllow; |
| … |
… |
|
| 1008 | 1008 | listp = &AttachExclude; |
| 1009 | 1009 | } |
| 1010 | | else if (!mutt_strncasecmp(category, "inline", strlen(category))) { |
| | 1010 | else if (!ascii_strncasecmp(category, "inline", strlen(category))) { |
| 1011 | 1011 | if (op == '+') |
| 1012 | 1012 | listp = &InlineAllow; |
| … |
… |
|
| 1039 | 1039 | p--; |
| 1040 | 1040 | } |
| 1041 | | if (!mutt_strncasecmp(p, "attachment", strlen(p))) { |
| | 1041 | if (!ascii_strncasecmp(p, "attachment", strlen(p))) { |
| 1042 | 1042 | if (op == '+') |
| 1043 | 1043 | listp = &AttachAllow; |
| … |
… |
|
| 1045 | 1045 | listp = &AttachExclude; |
| 1046 | 1046 | } |
| 1047 | | else if (!mutt_strncasecmp(p, "inline", strlen(p))) { |
| | 1047 | else if (!ascii_strncasecmp(p, "inline", strlen(p))) { |
| 1048 | 1048 | if (op == '+') |
| 1049 | 1049 | listp = &InlineAllow; |
-
|
r4439
|
r4490
|
|
| 1543 | 1543 | /* Always recurse multiparts, except multipart/alternative. */ |
| 1544 | 1544 | shallrecurse = 1; |
| 1545 | | if (!mutt_strcasecmp(bp->subtype, "alternative")) |
| | 1545 | if (!ascii_strcasecmp(bp->subtype, "alternative")) |
| 1546 | 1546 | shallrecurse = 0; |
| 1547 | 1547 | |
-
|
r4439
|
r4490
|
|
| 1622 | 1622 | |
| 1623 | 1623 | line = mutt_read_line (line, &linelen, smimeerr, &lineno); |
| 1624 | | if (linelen && !mutt_strcasecmp (line, "verification successful")) |
| | 1624 | if (linelen && !ascii_strcasecmp (line, "verification successful")) |
| 1625 | 1625 | badsig = 0; |
| 1626 | 1626 | |
| … |
… |
|
| 1843 | 1843 | |
| 1844 | 1844 | line = mutt_read_line (line, &linelen, smimeerr, &lineno); |
| 1845 | | if (linelen && !mutt_strcasecmp (line, "verification successful")) |
| | 1845 | if (linelen && !ascii_strcasecmp (line, "verification successful")) |
| 1846 | 1846 | m->goodsig = 1; |
| 1847 | 1847 | FREE (&line); |