Doveadm option for a non-wildcard single-user with userdb

Ivan Zahariev famzah at icdsoft.com
Thu Feb 2 10:49:46 UTC 2017


Hello,

Most "doveadm" commands accept "[-A|-u user|-F file]" for user 
selection, or the environment "USER". I'm testing with "doveadm quota 
recalc".

The problem is that there is no way to ask "doveadm" to work in (1) 
single-user mode with (2) no wildcard support, and at the same time to 
(3) make a lookup in "userdb", in order to get the user's specific 
configuration. We have mailboxes which contain "?" and "*" symbols, and 
we can't work with them using "doveadm" now.

* If we use "-A", this works with all users. Not our case at all.
* If we use "-F" and provide just one user in the file, this works for a 
single user + lookup in "userdb", does not interpret wildcard, but 
"doveadm" works in a "users list" mode and the output is different. 
What's more problematic is that errors for an mbox do not end up in 
"doveadm" exiting with a non-zero exit code.
* If we use "-u", this works for a single user + lookup in "userdb", but 
interprets wildcards. Does not work for mailboxes which contain "?" and "*".
* If we use the USER environment, this works for a single users and does 
not interpret wildcards but does not do a lookup in "userdb".

Should we add another user-selection argument, for example "-U", which 
(1) selects a single-user like "-u", does a "userdb" lookup like "-u" 
does, but does not interpret wildcards unlike "-u" ?

Best regards.
--Ivan


More information about the dovecot mailing list