aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index eb65dead4e..765a9af5b5 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -29,11 +29,8 @@
#include <string.h>
#include <stdio.h>
#include <ctype.h>
-
#include <errno.h>
-#include <gal/util/e-iconv.h>
-
#include "camel-mime-parser.h"
#include "camel-stream-mem.h"
#include "camel-stream-filter.h"
@@ -223,9 +220,10 @@ process_header(CamelMedium *medium, const char *header_name, const char *header_
switch (header_type) {
case HEADER_DESCRIPTION: /* raw header->utf8 conversion */
g_free (mime_part->description);
- if (mime_part->content_type)
- charset = e_iconv_charset_name(header_content_type_param(mime_part->content_type, "charset"));
- else
+ if (mime_part->content_type) {
+ charset = header_content_type_param (mime_part->content_type, "charset");
+ charset = camel_charset_canonical_name (charset);
+ } else
charset = NULL;
mime_part->description = g_strstrip (header_decode_string (header_value, charset));
break;
span>/+3 * - Update to 0.15culot2013-04-272-3/+3 * - Update to 0.005culot2013-04-272-13/+5 * - Update to 6.1.4madpilot2013-04-273-19/+22 * Whitespace fix.olgeni2013-04-271-1/+1 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-2749-84/+54 * - Update to 0.001000sunpoet2013-04-272-8/+4 * - Update to 0.17sunpoet2013-04-272-9/+5 * - Update to 0.018sunpoet2013-04-272-4/+4 * - Add new port: devel/R-cran-gtoolstota2013-04-274-0/+23 * - Trim Makefile headersmva2013-04-272-37/+27 * The KoreLogic Expression Language Library is a C library thatpawel2013-04-275-0/+47 * Convert USE_GETTEXT -> USES=gettextbapt2013-04-2612-131/+111 * - Fix leftovers in pkg-plistgahr2013-04-261-0/+3 * - Fix PLISTgahr2013-04-262-2/+0 * - Convert USE_GETTEXT to USES (part 4)ak2013-04-2632-51/+32 * 2013-04-26 devel/py-extended_threading: checksum mismatch; domain disappearedrene2013-04-265-56/+0 * - Update to 1.2miwi2013-04-262-9/+7 * Do not check NOPORTDOCS when about to install port examples.danfe2013-04-261-1/+5 * - Update to 0.44sunpoet2013-04-262-22/+6 * - Update to 0.019sunpoet2013-04-262-3/+3 * - Update to 2.39sunpoet2013-04-263-6/+8 * - Update to 0.9.10sunpoet2013-04-263-7/+5 * Fix a minor security vulnerability.jkim2013-04-262-1/+53 * - Update to revision 7046mva2013-04-263-5/+5 * - Update to 1.5 [1]culot2013-04-262-9/+9 * Remove USE_GTK which does nothing since 20080721bapt2013-04-261-8/+2 * Upgrade to version 0.13.2.olgeni2013-04-253-4/+8 * - Update to 0.22culot2013-04-252-3/+3 * Update to 1.12.tobez2013-04-252-3/+3 * Update to 1.09.tobez2013-04-252-4/+4 * Add devel/p5-Test-FailWarnings 0.003, a Perl test module that adds testtobez2013-04-255-0/+34 * Add creduce:eadler2013-04-255-0/+48 * More formatting fixeseadler2013-04-251-2/+1 * Fix build with clang 3.3kevlo2013-04-251-0/+20 * - Convert to OptionsNGswills2013-04-251-8/+5 * - Update master siteswills2013-04-251-1/+1 * - Update to 3.1.2sbz2013-04-252-3/+3 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-25