[PATCH 02/10] Fix in bs charset convert code.
- From: Jose Dapena Paz <jdapena igalia com>
- Subject: [PATCH 02/10] Fix in bs charset convert code.
- Date: Tue, 24 Nov 2009 12:17:13 +0100
---
libtinymail-camel/tny-camel-bs-mime-part.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libtinymail-camel/tny-camel-bs-mime-part.c b/libtinymail-camel/tny-camel-bs-mime-part.c
index 0b9574d..9bbbe7b 100644
--- a/libtinymail-camel/tny-camel-bs-mime-part.c
+++ b/libtinymail-camel/tny-camel-bs-mime-part.c
@@ -178,7 +178,9 @@ decode_from_stream_to (TnyMimePart *self, TnyStream *from_stream, TnyStream *str
gssize bytes_written = -1;
TnyCamelBsMimePartPriv *priv = TNY_CAMEL_BS_MIME_PART_GET_PRIVATE (self);
- if (decode_text && camel_strcase_equal (priv->bodystructure->content.type, "TEXT"))
+ if (decode_text &&
+ camel_strcase_equal (priv->bodystructure->content.type, "TEXT") &&
+ camel_strcase_equal (priv->bodystructure->content.subtype, "PLAIN"))
{
gchar *encoding = NULL;
gchar *charset = (gchar *) mimeparam_get_value_for (priv->bodystructure->content.params, "CHARSET");
--
1.6.3.3
--=-gnkDh763C8UIUYIzLd8x
Content-Disposition: attachment; filename*0=0003-Added-method-to-know-if-a-mime-part-is-already-fetch.pat; filename*1=ch
Content-Type: text/x-patch; name="0003-Added-method-to-know-if-a-mime-part-is-already-fetch.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]