not able to refesh INBOX 20/91520/6
authorintae, jeon <intae.jeon@samsung.com>
Mon, 10 Oct 2016 04:36:57 +0000 (13:36 +0900)
committerintae jeon <intae.jeon@samsung.com>
Tue, 11 Oct 2016 07:17:29 +0000 (00:17 -0700)
commit106695ca0d64680262901e8a9529be241484f3ad
tree2338e05f085d1e4edb8881704077326964454227
parent622071b24014b0cba6d7a6a5ae1ccbad1dd93560
not able to refesh INBOX

[Problem] not able to refresh INBOX.
[Cause & Measure]
Cause:
1. mailbox sync was failed.
2. default mailboxes (INBOX, SENTBOX, TRASH etc) were not synced, so email-service created those mailboxes as local box.
3. after a while, mailbox sync operation was operated normally, then mailboxes from server were synced. (INBOX, SENTBOX .. default mailboxes also)
4. In db, there were both local default mailboxes and remote default mailboxes synced from server.
5. In application, calling get_mailbox_by_mailbox_type() but it returned local default mailbox (INBOX). So app did not operate synchronization.
Measure: default mailboxes need to be not created locally if mailbox sync operation is failed.

Change-Id: I4e7d1e646df9b32066dd5d42ed67c4c3e3b4eb95
Signed-off-by: intae, jeon <intae.jeon@samsung.com>
email-core/email-core-imap-mailbox.c