projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ddec5
)
notmuch-deliver: Won't deliver to more than one folder.
author
Thomas Schwinge
<thomas@schwinge.name>
Wed, 29 Dec 2010 19:31:41 +0000
(20:31 +0100)
committer
Ali Polatel
<alip@exherbo.org>
Fri, 4 Nov 2011 23:12:35 +0000
(
01:12
+0200)
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
contrib/notmuch-deliver/src/main.c
patch
|
blob
|
history
diff --git
a/contrib/notmuch-deliver/src/main.c
b/contrib/notmuch-deliver/src/main.c
index 4e0a6bba395b0cd7a157e5132adefb1c474e79e8..86437763e9431c02d683c3a24aa429135eed0cd5 100644
(file)
--- 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);