]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm-server: v2 mail commands weren't doing a userdb lookup.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Mar 2016 11:17:01 +0000 (14:17 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Mar 2016 12:11:58 +0000 (15:11 +0300)
src/doveadm/doveadm-mail.c

index bcc03978a594a26934d216f806708d66ec0c27cb..ace03f77e91e533a5e57f5c7398d1033495f17db 100644 (file)
@@ -932,6 +932,10 @@ doveadm_cmd_ver2_to_mail_cmd_wrapper(struct doveadm_cmd_context *cctx)
        };
 
        mctx = doveadm_mail_cmdline_init(&mail_cmd);
+       if (!cctx->cli) {
+               /* doveadm-server always does userdb lookups */
+               mctx->service_flags |= MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP;
+       }
        mctx->cur_username = cctx->username;
        mctx->iterate_all_users = FALSE;
        wildcard_user = NULL;