From 0396b6ca76b4ae9fe4467e14f5cf4963705213ad Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 12 Jan 2004 04:43:40 +0000 Subject: ** See bug 52725. 2004-01-12 Not Zed ** See bug 52725. * providers/imap/camel-imap-folder.c (get_content): pass in transfer encoding when setting up wrapper part. * providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new): Added an encoding type parameter, set on data wrapper. svn path=/trunk/; revision=24164 --- camel/providers/imap/camel-imap-folder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'camel/providers/imap/camel-imap-folder.c') diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index a4c40c6635..465e9949f4 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -1823,7 +1823,10 @@ get_content (CamelImapFolder *imap_folder, const char *uid, g_free (part_spec); return content; } else { - content = camel_imap_wrapper_new (imap_folder, ci->type, uid, *part_spec ? part_spec : "1", part); + CamelTransferEncoding enc; + + enc = ci->encoding?camel_transfer_encoding_from_string(ci->encoding):CAMEL_TRANSFER_ENCODING_DEFAULT; + content = camel_imap_wrapper_new (imap_folder, ci->type, enc, uid, *part_spec ? part_spec : "1", part); g_free (part_spec); return content; } -- cgit