mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
notmuch-deliver: Won't deliver to more than one folder.
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
This commit is contained in:
parent
47ddec5034
commit
8935c83c56
1 changed files with 5 additions and 0 deletions
|
@ -415,6 +415,11 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
g_free(conf_path);
|
g_free(conf_path);
|
||||||
|
|
||||||
|
if ((argc - 1) > 1) {
|
||||||
|
g_critical("Won't deliver to %d folders", argc - 1);
|
||||||
|
return EX_USAGE;
|
||||||
|
}
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
folder = g_strdup_printf("%s%s", opt_folder ? "." : "", argv[1]);
|
folder = g_strdup_printf("%s%s", opt_folder ? "." : "", argv[1]);
|
||||||
maildir = g_build_filename(db_path, folder, NULL);
|
maildir = g_build_filename(db_path, folder, NULL);
|
||||||
|
|
Loading…
Reference in a new issue