add MAIL_MOVE_FAIL storage noti when failed to move mail
authorMinsoo Kim <minnsoo.kim@samsung.com>
Wed, 27 Feb 2013 02:32:18 +0000 (11:32 +0900)
committerMinsoo Kim <minnsoo.kim@samsung.com>
Wed, 27 Feb 2013 02:32:18 +0000 (11:32 +0900)
email-core/email-core-mail.c
packaging/email-service.spec

index 9c06cd7..d755813 100755 (executable)
@@ -4769,8 +4769,15 @@ INTERNAL_FUNC int emcore_move_mail(int mail_ids[], int mail_ids_count, int dst_m
        ret = true;
 
 FINISH_OFF:
+       if (ret == false) {
+               if (!emcore_notify_storage_event(NOTI_MAIL_MOVE_FAIL, account_id, noti_param_1, parameter_string, noti_param_2))
+                       EM_DEBUG_EXCEPTION(" emcore_notify_storage_event failed [ NOTI_MAIL_MOVE_FAIL ] >>>> ");
+       }
+
        emstorage_free_mail(&mail_list, mail_ids_count, NULL);
+
        EM_SAFE_FREE(parameter_string);
+
        if (err_code != NULL)
                *err_code = err;
        EM_DEBUG_FUNC_END("err [%d]", err);
index 39aa585..1b20241 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       email-service
 Summary:    E-mail Framework Middleware package
-Version:    0.10.86
+Version:    0.10.87
 Release:    1
 Group:      System/Libraries
 License:    TBD