From: Timo Sirainen Date: Tue, 29 Mar 2016 11:17:01 +0000 (+0300) Subject: doveadm-server: v2 mail commands weren't doing a userdb lookup. X-Git-Tag: 2.2.23~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9fa0b95bcc29b6005e0b500f281be5776321a9f;p=thirdparty%2Fdovecot%2Fcore.git doveadm-server: v2 mail commands weren't doing a userdb lookup. --- diff --git a/src/doveadm/doveadm-mail.c b/src/doveadm/doveadm-mail.c index bcc03978a5..ace03f77e9 100644 --- a/src/doveadm/doveadm-mail.c +++ b/src/doveadm/doveadm-mail.c @@ -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;