dovecot-1.1: convert-tool didn't handle command line parameters ...
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 26 04:43:34 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/295d75f73467
changeset: 8289:295d75f73467
user: Timo Sirainen <tss at iki.fi>
date: Mon May 25 21:43:25 2009 -0400
description:
convert-tool didn't handle command line parameters correctly.
diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
src/plugins/convert/convert-tool.c | 8 ++++----
diffs (27 lines):
diff -r b48cf2b9be1a -r 295d75f73467 src/plugins/convert/convert-tool.c
--- a/src/plugins/convert/convert-tool.c Mon May 25 21:23:19 2009 -0400
+++ b/src/plugins/convert/convert-tool.c Mon May 25 21:43:25 2009 -0400
@@ -12,7 +12,7 @@
#define USAGE_STRING \
"Usage: <username> <home dir> <source mail env> <dest mail env>\n" \
-" [skip_broken_mailboxes] [skip_dotfiles] [alt_hierarchy_char=<c>]"
+" [skip_broken_mailboxes] [skip_dotdirs] [alt_hierarchy_char=<c>]"
int main(int argc, const char *argv[])
{
@@ -41,11 +41,11 @@ int main(int argc, const char *argv[])
set.home = argv[2];
for (i = 5; i < argc; i++) {
- if (strcmp(argv[i], "skip_broken_mailboxes") != 0)
+ if (strcmp(argv[i], "skip_broken_mailboxes") == 0)
set.skip_broken_mailboxes = TRUE;
- else if (strcmp(argv[i], "skip_dotdirs") != 0)
+ else if (strcmp(argv[i], "skip_dotdirs") == 0)
set.skip_dotdirs = TRUE;
- else if (strncmp(argv[i], "alt_hierarchy_char=", 19) != 0)
+ else if (strncmp(argv[i], "alt_hierarchy_char=", 19) == 0)
set.alt_hierarchy_char = argv[i][19];
}
More information about the dovecot-cvs
mailing list