From e04ff08029253c72af62df710a04cd45793ad23b Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Mon, 2 Aug 1999 15:11:10 +0000 Subject: sync before going home svn path=/trunk/; revision=1064 --- camel/camel-mime-part.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'camel/camel-mime-part.c') 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"); -- cgit v1.2.3