char sep;
bool have_wildcards;
+ bool have_mailbox_defines;
};
static struct mail_search_args *
bbox->name++;
ctx->mbox->save_bbox = bbox;
}
+ ctx->have_mailbox_defines = TRUE;
array_append(&ctx->mbox->backend_boxes, &bbox, 1);
return 0;
}
if (ret == 0 && ctx.have_wildcards)
ret = virtual_config_expand_wildcards(&ctx);
- if (ret == 0 && array_count(&mbox->backend_boxes) == 0) {
+ if (ret == 0 && !ctx.have_mailbox_defines) {
mail_storage_set_critical(storage,
"%s: No mailboxes defined", path);
ret = -1;