From 0c1fa4577108c2d15a4f3d96611a34e7d7d152ca Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 23 Oct 2009 20:28:44 +0200 Subject: Bug #585715 - Skip empty parts in multipart/alternative formatting --- em-format/em-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/em-format/em-format.c b/em-format/em-format.c index a6b01f4b9a..9d3cb7c1f9 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -1445,7 +1445,7 @@ emf_multipart_alternative(EMFormat *emf, CamelStream *stream, CamelMimePart *par /* is it correct to use the passed in *part here? */ part = camel_multipart_get_part(mp, i); - if (!part) + if (!part || !camel_mime_part_get_content_size (part)) continue; type = camel_mime_part_get_content_type (part); -- cgit v1.2.3