diff options
Diffstat (limited to 'mh/comp.c')
-rw-r--r-- | mh/comp.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -124,21 +124,22 @@ copy_message (mu_mailbox_t mbox, size_t n, const char *file) mu_error (_("error copying to \"%s\": %s"), file, mu_strerror (rc)); } return rc; } +static struct mh_optinit optinit[] = { + { "draftfolder", "Draft-Folder" }, + { "whatnowproc", "whatnowproc" }, + { NULL } +}; + int main (int argc, char **argv) { - mh_getopt (&argc, &argv, options, 0, args_doc, prog_doc, NULL); - - if (!draftfolder) - draftfolder = mh_global_profile_get ("Draft-Folder", NULL); - if (!whatnowproc) - whatnowproc = mh_global_profile_get ("whatnowproc", NULL); + mh_getopt_ext (&argc, &argv, options, 0, optinit, args_doc, prog_doc, NULL); if (use_draft) draftmessage = "cur"; if (!formfile) mh_find_file ("components", &formfile); |