diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-06-05 03:02:16 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-06-05 03:02:16 +0000 |
commit | 53f40970c04b46097b26d2600f1a031ad80ab22b (patch) | |
tree | 5b1e44bb80a5915ca900b176edec2c07bf863795 | |
parent | 3fb5c4e8e8a1563ca47428482ea09d76624bb5e2 (diff) |
fixed Content-Transfer-Encoding with comments.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2001 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | libsylph/procmime.c | 12 |
3 files changed, 16 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2008-06-05 + + * libsylph/procmime.c: procmime_scan_encoding(): fixed + Content-Transfer-Encoding with comments. + 2008-05-22 * src/summaryview.c: summary_display_msg_idle_func(): fixed a crash diff --git a/ChangeLog.ja b/ChangeLog.ja index a3e0b158..e053d068 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2008-06-05 + + * libsylph/procmime.c: procmime_scan_encoding(): コメント付きの + Content-Transfer-Encoding を修正。 + 2008-05-22 * src/summaryview.c: summary_display_msg_idle_func(): クラッシュを 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; |