aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-02 23:11:10 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-02 23:11:10 +0800
commite04ff08029253c72af62df710a04cd45793ad23b (patch)
tree9a1675b32c5700a0ffcdae1fefdb1f2f8dbfa024 /camel/camel-mime-part.c
parent9a87a9ff789115cfa55316b14dea6393cd4e9bce (diff)
downloadgsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.tar
gsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.tar.gz
gsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.tar.bz2
gsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.tar.lz
gsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.tar.xz
gsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.tar.zst
gsoc2013-evolution-e04ff08029253c72af62df710a04cd45793ad23b.zip
sync before going home
svn path=/trunk/; revision=1064
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 913ab31e63..18c8b72be1 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -796,9 +796,11 @@ camel_mime_part_set_text (CamelMimePart *camel_mime_part, gchar *text)
}
if (text) {
simple_data_wrapper = camel_simple_data_wrapper_new ();
- camel_mime_part->content = CAMEL_DATA_WRAPPER (simple_data_wrapper);
+ //camel_mime_part->content = CAMEL_DATA_WRAPPER (simple_data_wrapper);
CAMEL_LOG_FULL_DEBUG ("CamelMimePart::set_text calling CamelSimpleDataWrapper:set_text with %d chars\n", strlen (text));
+ camel_data_wrapper_set_mime_type (CAMEL_DATA_WRAPPER (simple_data_wrapper), "text/plain");
camel_simple_data_wrapper_set_text ( simple_data_wrapper, text);
+ camel_mime_part_set_content_object (camel_mime_part, CAMEL_DATA_WRAPPER (simple_data_wrapper));
} else camel_mime_part->content = NULL;
CAMEL_LOG_FULL_DEBUG ("CamelMimePart:: Leaving camel_mime_part_set_text\n");