[evolution] Bug #585715 - Skip empty parts in multipart/alternative formatting



commit 0c1fa4577108c2d15a4f3d96611a34e7d7d152ca
Author: Milan Crha <mcrha redhat com>
Date:   Fri Oct 23 20:28:44 2009 +0200

    Bug #585715 - Skip empty parts in multipart/alternative formatting

 em-format/em-format.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/em-format/em-format.c b/em-format/em-format.c
index a6b01f4..9d3cb7c 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);



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