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>