Revert "Revert "not able to refesh INBOX"" 49/93349/3
authorintae jeon <intae.jeon@samsung.com>
Mon, 24 Oct 2016 01:04:46 +0000 (18:04 -0700)
committerintae jeon <intae.jeon@samsung.com>
Mon, 24 Oct 2016 06:01:41 +0000 (23:01 -0700)
This reverts commit 0ef29f5e7b7da6bb9ec96aea1f0ace3108271154.

Change-Id: Ib20ba7a8852d9676e28b3977cf256d35552d7340

email-core/email-core-imap-mailbox.c

index 6585807..c5fa364 100755 (executable)
@@ -734,7 +734,16 @@ int emcore_download_mailbox_list(void *mail_stream,
        *count        = holder.num;
        *mailbox_list = (email_internal_mailbox_t*) holder.data;
 
-       ret = true;
+
+       EM_DEBUG_LOG("count: [%d], mailbox_list[%p]", *count, *mailbox_list);
+       if (*count <= 0 || *mailbox_list == NULL) {
+               err = EMAIL_ERROR_MAILBOX_NOT_FOUND;
+               ret = false;
+       } else {
+               ret = true;
+       }
+
+
 
 FINISH_OFF:
        if (err_code)