From: intae, jeon Date: Mon, 10 Oct 2016 06:51:16 +0000 (+0900) Subject: mailbox_id from "Email Sent" notification was wrong X-Git-Tag: accepted/tizen/common/20161102.122120~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4229c6bd60594b2673e2a9526db9e44cc7aa5c59;p=platform%2Fcore%2Fmessaging%2Femail-service.git mailbox_id from "Email Sent" notification was wrong [Problem] mailbox_id was set as OUTBOX in "Email Sent" notification [Cause & Measure] Cause: mailbox_id was set on the notification when the mail was in OUTBOX yet. Measure: Creating "Sent" notification after the mail is moved to Sent box. Change-Id: I6316a83aceb57ad33f1dcc02dd3388865ed10003 Signed-off-by: intae, jeon --- diff --git a/email-core/email-core-smtp.c b/email-core/email-core-smtp.c index 72bc1ed..4c9cd93 100755 --- a/email-core/email-core-smtp.c +++ b/email-core/email-core-smtp.c @@ -1896,7 +1896,6 @@ INTERNAL_FUNC int emcore_send_mail(char *multi_user_name, int mail_id, int *err_ goto FINISH_OFF; } - emcore_show_user_message(multi_user_name, mail_id, EMAIL_ACTION_SEND_MAIL, err); sent_flag = 1; /* sent mail is moved to 'SENT' box or deleted. */ @@ -2112,9 +2111,7 @@ FINISH_OFF: EM_SAFE_FREE(server_uid); - if (ret == false && sent_flag == 0) { - emcore_show_user_message(multi_user_name, mail_id, EMAIL_ACTION_SEND_MAIL, err); - } + emcore_show_user_message(multi_user_name, mail_id, EMAIL_ACTION_SEND_MAIL, err); if (ret == false && err != EMAIL_ERROR_INVALID_PARAM && mail_tbl_data) { if (err != EMAIL_ERROR_CANCELLED) {