Modified the multipart/mixed for plain and attachment
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Sat, 27 Apr 2013 08:52:59 +0000 (17:52 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Sat, 27 Apr 2013 08:52:59 +0000 (17:52 +0900)
email-core/email-core-smtp.c
packaging/email-service.spec
packaging/email.service

index 07faae7..06a6181 100755 (executable)
@@ -2993,6 +2993,24 @@ INTERNAL_FUNC int emcore_make_rfc822_file_from_mail(emstorage_mail_tbl_t *input_
                                        goto FINISH_OFF;
                                }
                        }
+               } else if (input_mail_tbl_data->smime_type == EMAIL_SMIME_NONE && (input_mail_tbl_data->file_path_plain || input_mail_tbl_data->file_path_html)) {
+                       if (input_mail_tbl_data->file_path_plain && EM_SAFE_STRLEN(input_mail_tbl_data->file_path_plain) > 0) {
+                               EM_DEBUG_LOG("file_path_plain[%s]", input_mail_tbl_data->file_path_plain);
+                               if (!attach_part(root_body, (unsigned char *)input_mail_tbl_data->file_path_plain, 0, NULL, NULL, false, &error)) {
+                                       EM_DEBUG_EXCEPTION("attach_part failed [%d]", error);
+                                       goto FINISH_OFF;
+                               }
+                       }
+
+                       if (input_mail_tbl_data->file_path_html && EM_SAFE_STRLEN(input_mail_tbl_data->file_path_html) > 0) {
+                               EM_DEBUG_LOG("file_path_html[%s]", input_mail_tbl_data->file_path_html);
+                               if (!attach_part(root_body, (unsigned char *)input_mail_tbl_data->file_path_html, 0, NULL, NULL, false, &error)) {
+                                       EM_DEBUG_EXCEPTION("attach_part failed [%d]", error);
+                                       goto FINISH_OFF;
+                               }
+                       }
+               } else {
+                       EM_DEBUG_LOG("unkwon case");
                }
 
                if (input_mail_tbl_data->file_path_mime_entity && EM_SAFE_STRLEN(input_mail_tbl_data->file_path_mime_entity) > 0) {
index 17386c7..7e7aa9b 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       email-service
 Summary:    E-mail Framework Middleware package
-Version:    0.10.97
+Version:    0.10.98
 Release:    1
 Group:      System/Libraries
 License:    TBD
index 2ebc796..c49193f 100644 (file)
@@ -10,4 +10,4 @@ Restart=always
 
 [Install]
 WantedBy=tizen-middleware.target
-
+EnvironmentFile=/run/tizen-mobile-ui