Index: mail-to-task.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/mail-to-task/mail-to-task.c,v
retrieving revision 1.10
diff -u -r1.10 mail-to-task.c
--- mail-to-task.c	4 Mar 2006 10:16:29 -0000	1.10
+++ mail-to-task.c	25 Apr 2006 07:58:32 -0000
@@ -21,6 +21,7 @@
 #include <camel/camel-folder.h>
 #include <camel/camel-medium.h>
 #include <camel/camel-mime-message.h>
+#include <camel/camel-multipart.h>
 #include <camel/camel-stream.h>
 #include <camel/camel-stream-mem.h>
 #include "mail/em-menu.h"
@@ -86,12 +87,19 @@
 	if (!content)
 		return;
 
+	if (CAMEL_IS_MULTIPART (content))
+	{
+		CamelMedium *medium;
+		medium = CAMEL_MEDIUM(camel_multipart_get_part (CAMEL_MULTIPART (content), 0));
+		content = camel_medium_get_content_object (medium);
+	}
+
 	mem = camel_stream_mem_new ();
 	camel_data_wrapper_decode_to_stream (content, mem);
 
 	str = g_strndup (((CamelStreamMem *) mem)->buffer->data, ((CamelStreamMem *) mem)->buffer->len);
 	camel_object_unref (mem);
-
+	
 	/* convert to UTF-8 string */
 	if (str && content->mime_type->params && content->mime_type->params->value)
 	{
