]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm mailbox cache remove: Require search query parameter
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 10 Oct 2019 07:34:29 +0000 (10:34 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Sun, 13 Oct 2019 07:52:45 +0000 (07:52 +0000)
Don't treat nonexistent search query the same as ALL.

src/doveadm/doveadm-mail-mailbox-cache.c

index 0df6d366fe37e4958a8a446d72570a9878f7d37b..f4d96db0128feaadb00e98f532023a35af8c7b22 100644 (file)
@@ -314,6 +314,9 @@ static void cmd_mailbox_cache_remove_init(struct doveadm_mail_cmd_context *_ctx,
        struct mailbox_cache_cmd_context *ctx =
                container_of(_ctx, struct mailbox_cache_cmd_context, ctx);
 
+       if (args[0] == NULL)
+               doveadm_mail_help_name("mailbox cache remove");
+
        doveadm_print_header_simple("mailbox");
        doveadm_print_header_simple("uid");
        doveadm_print_header_simple("result");