From 53f40970c04b46097b26d2600f1a031ad80ab22b Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 5 Jun 2008 03:02:16 +0000 Subject: fixed Content-Transfer-Encoding with comments. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2001 ee746299-78ed-0310-b773-934348b2243d --- libsylph/procmime.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libsylph/procmime.c') 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; -- cgit v1.2.3