aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-24 00:45:13 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-24 00:45:13 +0800
commit4f822eb8e2b1668280a41ce9a962f5f341d2ac99 (patch)
tree5cb27c0376700b90d92d961ee85620546d0975c7 /composer/e-msg-composer-attachment-bar.c
parent8290ca88493ab6265389b17a75e13cbbeaeb20f9 (diff)
downloadgsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.tar
gsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.tar.gz
gsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.tar.bz2
gsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.tar.lz
gsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.tar.xz
gsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.tar.zst
gsoc2013-evolution-4f822eb8e2b1668280a41ce9a962f5f341d2ac99.zip
Revert my previous changes here too.
2003-07-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): Revert my previous changes here too. * e-msg-composer.c (build_message): Revert my previous changes. svn path=/trunk/; revision=21918
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 05a1b549f3..b1e714ca7e 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -751,7 +751,14 @@ attach_to_multipart (CamelMultipart *multipart,
const char *charset;
char *type;
- charset = header_content_type_param (content_type, "charset");
+ /* assume that if a charset is set, that the content is in UTF-8
+ * or else already has rawtext set to TRUE */
+ if (!(charset = header_content_type_param (content_type, "charset"))) {
+ /* Let camel know that this text part was read in raw and thus is not in
+ * UTF-8 format so that when it writes this part out, it doesn't try to
+ * convert it from UTF-8 into the @default_charset charset. */
+ content->rawtext = TRUE;
+ }
stream = camel_stream_null_new ();
filter_stream = camel_stream_filter_new_with_stream (stream);