notmuch-deliver: Won't deliver to more than one folder.

Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
This commit is contained in:
Thomas Schwinge 2010-12-29 20:31:41 +01:00 committed by Ali Polatel
parent 47ddec5034
commit 8935c83c56

View file

@ -415,6 +415,11 @@ main(int argc, char **argv)
}
g_free(conf_path);
if ((argc - 1) > 1) {
g_critical("Won't deliver to %d folders", argc - 1);
return EX_USAGE;
}
if (argc > 1) {
folder = g_strdup_printf("%s%s", opt_folder ? "." : "", argv[1]);
maildir = g_build_filename(db_path, folder, NULL);