dovecot-2.2: doveadm user: Removed -m parameter and made it defa...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 29 20:09:54 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/8e57d4a1cd19
changeset: 15345:8e57d4a1cd19
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 29 20:09:42 2012 +0200
description:
doveadm user: Removed -m parameter and made it default. Added -u for old functionality.
-u meaning "userdb lookup only".
diffstat:
src/doveadm/doveadm-auth.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r 55422e122c27 -r 8e57d4a1cd19 src/doveadm/doveadm-auth.c
--- a/src/doveadm/doveadm-auth.c Mon Oct 29 20:07:13 2012 +0200
+++ b/src/doveadm/doveadm-auth.c Mon Oct 29 20:09:42 2012 +0200
@@ -371,13 +371,13 @@
const char *show_field = NULL;
struct mail_storage_service_ctx *storage_service = NULL;
unsigned int i;
- bool have_wildcards, mail_fields = FALSE, first = TRUE;
+ bool have_wildcards, userdb_only = FALSE, first = TRUE;
int c, ret;
memset(&input, 0, sizeof(input));
input.info.service = "doveadm";
- while ((c = getopt(argc, argv, "a:f:mx:")) > 0) {
+ while ((c = getopt(argc, argv, "a:f:ux:")) > 0) {
switch (c) {
case 'a':
auth_socket_path = optarg;
@@ -385,8 +385,8 @@
case 'f':
show_field = optarg;
break;
- case 'm':
- mail_fields = TRUE;
+ case 'u':
+ userdb_only = TRUE;
break;
case 'x':
auth_user_info_parse(&input.info, optarg);
@@ -413,7 +413,7 @@
return;
}
- if (mail_fields) {
+ if (!userdb_only) {
storage_service = mail_storage_service_init(master_service, NULL,
MAIL_STORAGE_SERVICE_FLAG_NO_LOG_INIT |
MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP);
@@ -425,7 +425,7 @@
else
putchar('\n');
- ret = mail_fields ?
+ ret = !userdb_only ?
cmd_user_mail_input(storage_service, &input, show_field) :
cmd_user_input(auth_socket_path, &input, show_field);
switch (ret) {
@@ -447,7 +447,7 @@
{ cmd_auth_cache_flush, "auth cache flush",
"[-a <master socket path>] [<user> [...]]" },
{ cmd_user, "user",
- "[-a <userdb socket path>] [-x <auth info>] [-f field] [-m] <user mask> [...]" }
+ "[-a <userdb socket path>] [-x <auth info>] [-f field] [-u] <user mask> [...]" }
};
static void auth_cmd_help(doveadm_command_t *cmd)
More information about the dovecot-cvs
mailing list