Fixed the mime parse returen value
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Mon, 7 Jan 2013 06:34:35 +0000 (15:34 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Mon, 7 Jan 2013 06:34:35 +0000 (15:34 +0900)
email-core/email-core-mime.c
packaging/email-service.spec

index f811ef2..eea5152 100755 (executable)
@@ -5214,6 +5214,12 @@ INTERNAL_FUNC int emcore_parse_mime_file_to_mail(char *eml_file_path, email_mail
                goto FINISH_OFF;
        }
 
+       if (!mmsg->header->part_header) {
+               EM_DEBUG_EXCEPTION("Invalid eml format");
+               err = EMAIL_ERROR_INVALID_DATA; 
+               goto FINISH_OFF;
+       }
+
        if (!emcore_mime_parse_body(eml_fp, is_file, mmsg, cnt_info, NULL, &err)) {
                EM_DEBUG_EXCEPTION("emcore_mime_parse_body failed : [%d]", err);
                goto FINISH_OFF;
index 8e27cf7..e1067b1 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       email-service
 Summary:    E-mail Framework Middleware package
-Version:    0.10.15
+Version:    0.10.16
 Release:    1
 Group:      System/Libraries
 License:    TBD