aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmime.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-06-05 03:02:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-06-05 03:02:16 +0000
commit53f40970c04b46097b26d2600f1a031ad80ab22b (patch)
tree5b1e44bb80a5915ca900b176edec2c07bf863795 /libsylph/procmime.c
parent3fb5c4e8e8a1563ca47428482ea09d76624bb5e2 (diff)
fixed Content-Transfer-Encoding with comments.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2001 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r--libsylph/procmime.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c
index b06f0d6c..684256cd 100644
--- a/libsylph/procmime.c
+++ b/libsylph/procmime.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2008 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -358,15 +358,15 @@ void procmime_scan_encoding(MimeInfo *mimeinfo, const gchar *encoding)
g_free(mimeinfo->encoding);
mimeinfo->encoding = g_strdup(g_strstrip(buf));
- if (!g_ascii_strcasecmp(buf, "7bit"))
+ if (!g_ascii_strncasecmp(buf, "7bit", 4))
mimeinfo->encoding_type = ENC_7BIT;
- else if (!g_ascii_strcasecmp(buf, "8bit"))
+ else if (!g_ascii_strncasecmp(buf, "8bit", 4))
mimeinfo->encoding_type = ENC_8BIT;
- else if (!g_ascii_strcasecmp(buf, "quoted-printable"))
+ else if (!g_ascii_strncasecmp(buf, "quoted-printable", 16))
mimeinfo->encoding_type = ENC_QUOTED_PRINTABLE;
- else if (!g_ascii_strcasecmp(buf, "base64"))
+ else if (!g_ascii_strncasecmp(buf, "base64", 6))
mimeinfo->encoding_type = ENC_BASE64;
- else if (!g_ascii_strcasecmp(buf, "x-uuencode"))
+ else if (!g_ascii_strncasecmp(buf, "x-uuencode", 10))
mimeinfo->encoding_type = ENC_X_UUENCODE;
else
mimeinfo->encoding_type = ENC_UNKNOWN;