aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog4
-rw-r--r--composer/e-msg-composer.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 323670f41b..7734ae116e 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-21 Dan Winship <danw@ximian.com>
+
+ * e-msg-composer.c (build_message): Make this work again.
+
2003-07-17 Maxx Cao <maxx.cao@sun.com>
** For bug #46013
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index f1e634b809..7e6bf647c1 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -402,14 +402,13 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data)
header_content_type_set_param (type, "charset", charset);
}
- plain = camel_data_wrapper_new ();
-
+ stream = camel_stream_mem_new_with_byte_array (data);
+
/* convert the stream to the appropriate charset */
if (charset && strcasecmp (charset, "UTF-8") != 0) {
CamelStreamFilter *filter_stream;
CamelMimeFilterCharset *filter;
- stream = camel_stream_mem_new_with_byte_array (data);
filter_stream = camel_stream_filter_new_with_stream (stream);
camel_object_unref (stream);
@@ -420,6 +419,7 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data)
}
/* construct the content object */
+ plain = camel_data_wrapper_new ();
camel_data_wrapper_construct_from_stream (plain, stream);
camel_object_unref (stream);