Bugfix
Showing
2 changed files
with
7 additions
and
1 deletions
... | @@ -348,6 +348,11 @@ main (int argc, char **argv) | ... | @@ -348,6 +348,11 @@ main (int argc, char **argv) |
348 | mh_getopt (&argc, &argv, options, 0, args_doc, prog_doc, extra_doc); | 348 | mh_getopt (&argc, &argv, options, 0, args_doc, prog_doc, extra_doc); |
349 | if (!append_folder) | 349 | if (!append_folder) |
350 | append_folder = mh_global_profile_get ("Inbox", "inbox"); | 350 | append_folder = mh_global_profile_get ("Inbox", "inbox"); |
351 | if (argc) | ||
352 | { | ||
353 | mu_error (_("unrecognized arguments")); | ||
354 | exit (1); | ||
355 | } | ||
351 | 356 | ||
352 | mu_registrar_set_default_scheme ("mh"); | 357 | mu_registrar_set_default_scheme ("mh"); |
353 | 358 | ... | ... |
... | @@ -2808,8 +2808,9 @@ main (int argc, char **argv) | ... | @@ -2808,8 +2808,9 @@ main (int argc, char **argv) |
2808 | mbox = mh_open_folder (mh_current_folder (), MU_STREAM_READ); | 2808 | mbox = mh_open_folder (mh_current_folder (), MU_STREAM_READ); |
2809 | mh_msgset_parse (&msgset, mbox, argc, argv, "cur"); | 2809 | mh_msgset_parse (&msgset, mbox, argc, argv, "cur"); |
2810 | /* FIXME: Combine the three */ | 2810 | /* FIXME: Combine the three */ |
2811 | rc = 0; | ||
2811 | if (list_option) | 2812 | if (list_option) |
2812 | rc = mhn_list (); | 2813 | rc |= mhn_list (); |
2813 | if (show_option) | 2814 | if (show_option) |
2814 | rc |= mhn_show (); | 2815 | rc |= mhn_show (); |
2815 | if (store_option) | 2816 | if (store_option) | ... | ... |
-
Please register or sign in to post a comment