diff src/plugins/convert/convert-tool.c @ 9082:478ad35af83a HEAD

convert-tool didn't handle command line parameters correctly.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 May 2009 21:43:46 -0400
parents b9faf4db2a9f
children 00cd9aacd03c
line wrap: on
line diff
--- a/src/plugins/convert/convert-tool.c	Mon May 25 21:23:21 2009 -0400
+++ b/src/plugins/convert/convert-tool.c	Mon May 25 21:43:46 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[])
 {
@@ -40,11 +40,11 @@
 
 	memset(&set, 0, sizeof(set));
 	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];
 	}