[evolution/webkit: 19/123] Fix handling multipart/alternative with more then 2 parts in prefer-plain plugin



commit 69546030330fe2be5acda60673533844779daab7
Author: Dan VrÃtil <dvratil redhat com>
Date:   Fri Sep 9 11:34:18 2011 +0200

    Fix handling multipart/alternative with more then 2 parts in prefer-plain plugin

 plugins/prefer-plain/prefer-plain.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/prefer-plain/prefer-plain.c b/plugins/prefer-plain/prefer-plain.c
index 79d3bb0..cd5d9c7 100644
--- a/plugins/prefer-plain/prefer-plain.c
+++ b/plugins/prefer-plain/prefer-plain.c
@@ -84,7 +84,6 @@ make_part_attachment (EMFormat *format,
 
 		g_object_unref (new_part);
 	} else {
-		/* FIXME Not passing a GCancellable here. */
 		em_format_parse_part (format, part, part_id, &info, cancellable);
 	}
 }
@@ -145,7 +144,6 @@ org_gnome_prefer_plain_multipart_alternative (gpointer ep,
 	CamelMimePart *part, *display_part = NULL, *calendar_part = NULL;
 	gint i, nparts, partidlen, displayid = 0, calendarid = 0;
 
-	/* FIXME: this part-id stuff is poking private data, needs api */
 	partidlen = t->part_id->len;
 
 	if (epp_mode == EPP_NORMAL) {
@@ -191,11 +189,11 @@ org_gnome_prefer_plain_multipart_alternative (gpointer ep,
 		} else {
 			/* FIXME Not passing a GCancellable here. */
 			t->info->handler->old->parse_func (
-				t->format, display_part, t->part_id,
-				t->info, NULL);
+				t->format, t->part, t->part_id, t->info, NULL);
 		}
 		return;
 	} else if (!CAMEL_IS_MULTIPART (mp)) {
+		/* FIXME Not passing GCancellable here. */
 		em_format_parse_part_as (t->format, t->part, t->part_id, t->info, "x-evolution/message/source", NULL);
 		return;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]