aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-parser.c
diff options
context:
space:
mode:
authorJacob Leach <jleach@src.gnome.org>2000-05-03 22:43:10 +0800
committerJacob Leach <jleach@src.gnome.org>2000-05-03 22:43:10 +0800
commit3ccfb61399e6148be5a8b3141f35af272d10622d (patch)
tree3a171695399026c3796f7a1413969f62ff72677c /camel/camel-mime-parser.c
parent8813178854a02d8374701b9c32231356ae17b98e (diff)
downloadgsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.tar
gsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.tar.gz
gsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.tar.bz2
gsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.tar.lz
gsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.tar.xz
gsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.tar.zst
gsoc2013-evolution-3ccfb61399e6148be5a8b3141f35af272d10622d.zip
s/strcasecmp/g_strcasecamp/ everywhere except intl/, per michael's
request. svn path=/trunk/; revision=2776
Diffstat (limited to 'camel/camel-mime-parser.c')
-rw-r--r--camel/camel-mime-parser.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/camel/camel-mime-parser.c b/camel/camel-mime-parser.c
index a8910f3984..5417fffa3a 100644
--- a/camel/camel-mime-parser.c
+++ b/camel/camel-mime-parser.c
@@ -32,6 +32,7 @@
#include <unicode.h>
+#include <glib.h>
#include "camel-mime-parser.h"
#include "camel-mime-utils.h"
#include "camel-mime-filter.h"
@@ -1021,7 +1022,7 @@ tail_recurse:
type = HSCAN_HEADER;
if ( (content = header_raw_find(&h->headers, "Content-Type", NULL))
&& (ct = header_content_type_decode(content))) {
- if (!strcasecmp(ct->type, "multipart")) {
+ if (!g_strcasecmp(ct->type, "multipart")) {
bound = header_content_type_param(ct, "boundary");
if (bound) {
d(printf("multipart, boundary = %s\n", bound));
@@ -1036,9 +1037,9 @@ tail_recurse:
/* header_raw_replace(&h->headers, "Content-Type", "text/plain", offset);*/
g_warning("Multipart with no boundary, treating as text/plain");
}
- } else if (!strcasecmp(ct->type, "message")) {
- if (!strcasecmp(ct->subtype, "rfc822")
- /*|| !strcasecmp(ct->subtype, "partial")*/) {
+ } else if (!g_strcasecmp(ct->type, "message")) {
+ if (!g_strcasecmp(ct->subtype, "rfc822")
+ /*|| !g_strcasecmp(ct->subtype, "partial")*/) {
type = HSCAN_MESSAGE;
}
}
@@ -1181,7 +1182,7 @@ int main(int argc, char **argv)
case HSCAN_HEADER:
if (s->parts->content_type
&& (charset = header_content_type_param(s->parts->content_type, "charset"))) {
- if (strcasecmp(charset, "us-ascii")) {
+ if (g_strcasecmp(charset, "us-ascii")) {
folder_push_filter_charset(s, "UTF-8", charset);
} else {
charset = NULL;