diff options
author | Milan Crha <mcrha@redhat.com> | 2010-10-13 22:28:43 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-10-13 22:28:43 +0800 |
commit | 26b7d1f342e19ed828c4d3a3b99b15987fddeb94 (patch) | |
tree | 1b9543a84db93fa8fb06ba919139bc616c29f2c8 /mail/em-inline-filter.c | |
parent | c83faa7078cc1fd280ac573b07645e8464b2fdc4 (diff) | |
download | gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.tar gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.tar.gz gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.tar.bz2 gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.tar.lz gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.tar.xz gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.tar.zst gsoc2013-evolution-26b7d1f342e19ed828c4d3a3b99b15987fddeb94.zip |
Bug #630375 - Character encoding of GPG encrypted message not honored
Diffstat (limited to 'mail/em-inline-filter.c')
-rw-r--r-- | mail/em-inline-filter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/em-inline-filter.c b/mail/em-inline-filter.c index 7aeb36c291..7222c03489 100644 --- a/mail/em-inline-filter.c +++ b/mail/em-inline-filter.c @@ -102,8 +102,10 @@ inline_filter_add_part (EMInlineFilter *emif, const gchar *data, gint len) g_object_unref (mem); if (emif_types[emif->state].plain && emif->base_type) { - camel_content_type_ref (emif->base_type); - content_type = emif->base_type; + /* create a copy */ + type = camel_content_type_format (emif->base_type); + content_type = camel_content_type_decode (type); + g_free (type); } else { /* we want to preserve all params */ type = camel_content_type_format (emif->base_type); |