From: Thomas Schwinge Date: Wed, 29 Dec 2010 19:31:41 +0000 (+0100) Subject: notmuch-deliver: Won't deliver to more than one folder. X-Git-Tag: 0.10_rc1~44 X-Git-Url: https://git.cworth.org/git?p=obsolete%2Fnotmuch-old;a=commitdiff_plain;h=8935c83c56b70aec7a4a31b6015fff87721c5d13 notmuch-deliver: Won't deliver to more than one folder. Signed-off-by: Thomas Schwinge --- diff --git a/contrib/notmuch-deliver/src/main.c b/contrib/notmuch-deliver/src/main.c index 4e0a6bba..86437763 100644 --- a/contrib/notmuch-deliver/src/main.c +++ b/contrib/notmuch-deliver/src/main.c @@ -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);