Skip to content

Commit

Permalink
lib-storage: If mailbox list iteration fails, don't add INBOX
Browse files Browse the repository at this point in the history
It possibly should have been returned by the list iteration itself and we
could be returning it wrong here.

Also calling this causes imapc to lost the error message in mailbox_list.
  • Loading branch information
sirainen authored and GitLab committed Jun 12, 2017
1 parent a2dd3a0 commit 873a5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/list/mailbox-list-iter.c
Expand Up @@ -562,7 +562,7 @@ mailbox_list_ns_iter_try_next(struct mailbox_list_iterate_context *_ctx,
bool has_children;

if (ctx->cur_ns == NULL) {
if (!ctx->inbox_listed && ctx->inbox_list) {
if (!ctx->inbox_listed && ctx->inbox_list && !_ctx->failed) {
/* send delayed INBOX reply */
ctx->inbox_listed = TRUE;
inbox_set_children_flags(ctx);
Expand Down

0 comments on commit 873a5be

Please sign in to comment.