From 598af32542e24e9dddf54eead2130e7b2c571ea6 Mon Sep 17 00:00:00 2001 From: Minsoo Kim Date: Wed, 27 Feb 2013 11:32:18 +0900 Subject: [PATCH] add MAIL_MOVE_FAIL storage noti when failed to move mail --- email-core/email-core-mail.c | 7 +++++++ packaging/email-service.spec | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/email-core/email-core-mail.c b/email-core/email-core-mail.c index 9c06cd7..d755813 100755 --- a/email-core/email-core-mail.c +++ b/email-core/email-core-mail.c @@ -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); diff --git a/packaging/email-service.spec b/packaging/email-service.spec index 39aa585..1b20241 100755 --- a/packaging/email-service.spec +++ b/packaging/email-service.spec @@ -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 -- 2.7.4