34 |
|
|
35 |
const char *argp_program_version = "folder (" PACKAGE_STRING ")"; |
const char *argp_program_version = "folder (" PACKAGE_STRING ")"; |
36 |
static char doc[] = "GNU MH folder"; |
static char doc[] = "GNU MH folder"; |
37 |
static char args_doc[] = "[action][msg]"; |
static char args_doc[] = "[action] [msg]"; |
38 |
|
|
39 |
#define ARG_PUSH 1 |
#define ARG_PUSH 1 |
40 |
#define ARG_POP 2 |
#define ARG_POP 2 |
493 |
if (argc - index == 1) |
if (argc - index == 1) |
494 |
{ |
{ |
495 |
mailbox_t mbox = mh_open_folder (current_folder, 0); |
mailbox_t mbox = mh_open_folder (current_folder, 0); |
496 |
mh_msgset_parse (mbox, &msgset, argc - index, argv + index); |
mh_msgset_parse (mbox, &msgset, argc - index, argv + index, "cur"); |
497 |
current_message = msgset.list[0]; |
mh_msgset_current (mbox, &msgset, 0); |
498 |
mh_global_save_state (); |
mh_global_save_state (); |
499 |
mailbox_close (mbox); |
mailbox_close (mbox); |
500 |
mailbox_destroy (&mbox); |
mailbox_destroy (&mbox); |