mailbox_id from "Email Sent" notification was wrong 48/91548/6
authorintae, jeon <intae.jeon@samsung.com>
Mon, 10 Oct 2016 06:51:16 +0000 (15:51 +0900)
committerintae jeon <intae.jeon@samsung.com>
Mon, 24 Oct 2016 06:04:06 +0000 (23:04 -0700)
[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 <intae.jeon@samsung.com>
email-core/email-core-smtp.c

index 72bc1ed..4c9cd93 100755 (executable)
@@ -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) {