doveadm_print_header_simple("decision");
doveadm_print_header_simple("last-used");
- if (!ctx->all_fields && ctx->fields == NULL) {
- i_error("Missing fields parameter");
- _ctx->exit_code = EX_USAGE;
- return;
- }
+ if (!ctx->all_fields && ctx->fields == NULL)
+ i_fatal("Missing fields parameter");
ctx->boxes = args;
}
const char *const *boxname;
int ret = 0;
+ if (_ctx->exit_code != 0)
+ return -1;
+
for(boxname = ctx->boxes; ret == 0 && *boxname != NULL; boxname++) {
struct mailbox *box;
if ((ret = cmd_mailbox_cache_open_box(_ctx, user, *boxname, &box)) < 0)