(main): Correctly set current message number.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -34,7 +34,7 @@ | ... | @@ -34,7 +34,7 @@ |
34 | 34 | ||
35 | const char *argp_program_version = "folder (" PACKAGE_STRING ")"; | 35 | const char *argp_program_version = "folder (" PACKAGE_STRING ")"; |
36 | static char doc[] = "GNU MH folder"; | 36 | static char doc[] = "GNU MH folder"; |
37 | static char args_doc[] = "[action][msg]"; | 37 | static char args_doc[] = "[action] [msg]"; |
38 | 38 | ||
39 | #define ARG_PUSH 1 | 39 | #define ARG_PUSH 1 |
40 | #define ARG_POP 2 | 40 | #define ARG_POP 2 |
... | @@ -493,8 +493,8 @@ main (int argc, char **argv) | ... | @@ -493,8 +493,8 @@ main (int argc, char **argv) |
493 | if (argc - index == 1) | 493 | if (argc - index == 1) |
494 | { | 494 | { |
495 | mailbox_t mbox = mh_open_folder (current_folder, 0); | 495 | mailbox_t mbox = mh_open_folder (current_folder, 0); |
496 | mh_msgset_parse (mbox, &msgset, argc - index, argv + index); | 496 | mh_msgset_parse (mbox, &msgset, argc - index, argv + index, "cur"); |
497 | current_message = msgset.list[0]; | 497 | mh_msgset_current (mbox, &msgset, 0); |
498 | mh_global_save_state (); | 498 | mh_global_save_state (); |
499 | mailbox_close (mbox); | 499 | mailbox_close (mbox); |
500 | mailbox_destroy (&mbox); | 500 | mailbox_destroy (&mbox); | ... | ... |
-
Please register or sign in to post a comment