diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2010-12-29 20:31:41 +0100 |
---|---|---|
committer | Ali Polatel <alip@exherbo.org> | 2011-11-05 01:12:35 +0200 |
commit | 8935c83c56b70aec7a4a31b6015fff87721c5d13 (patch) | |
tree | a261efcdbf38a116c6fdf6b9eb489d695d8b8964 /contrib | |
parent | 47ddec50348e36563f10579a52e058b640a366b1 (diff) |
notmuch-deliver: Won't deliver to more than one folder.
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/notmuch-deliver/src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |