Revert "Revert "eml parser API causes crash."" 46/93346/2
authorintae jeon <intae.jeon@samsung.com>
Mon, 24 Oct 2016 01:04:05 +0000 (18:04 -0700)
committerintae jeon <intae.jeon@samsung.com>
Mon, 24 Oct 2016 01:08:50 +0000 (18:08 -0700)
This reverts commit 7d6952649538aa242a989fe509ccee95c4a471ac.

Change-Id: Iee8b047ae7a1758b13aeed4950b352facbf481aa

email-core/email-core-gmime.c

index 32456f6..ac34b2e 100755 (executable)
@@ -1226,7 +1226,7 @@ static void emcore_gmime_eml_parse_foreach_cb(GMimeObject *parent, GMimeObject *
                        }
 
                        /*cid replacement for inline attachment*/
-                       if (content_disposition_type == INLINE_ATTACHMENT) {
+                       if (cnt_info->text.html && content_disposition_type == INLINE_ATTACHMENT) {
                                char *file_content = NULL;
                                char *encoding_file_name = NULL;
                                int html_size = 0;