dovecot-2.0: doveadm: Fixed giving parameters to mail commands.

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 10 00:45:55 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/98f13cc1e649
changeset: 12590:98f13cc1e649
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 10 00:45:51 2011 +0200
description:
doveadm: Fixed giving parameters to mail commands.

diffstat:

 src/doveadm/doveadm-mail.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 443cc3044d91 -r 98f13cc1e649 src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c	Tue Feb 08 03:31:46 2011 +0200
+++ b/src/doveadm/doveadm-mail.c	Thu Feb 10 00:45:51 2011 +0200
@@ -399,7 +399,8 @@
 				doveadm_mail_help(cmd);
 		}
 	}
-	argv += optind;
+	if (optind > 0)
+		argv += optind - 1;
 	if (argv[0] != NULL && cmd->usage_args == NULL) {
 		i_fatal("doveadm %s: Unknown parameter: %s",
 			cmd->name, argv[0]);


More information about the dovecot-cvs mailing list