summaryrefslogtreecommitdiffabout
path: root/mh/comp.c
Side-by-side diff
Diffstat (limited to 'mh/comp.c') (more/less context) (ignore whitespace changes)
-rw-r--r--mh/comp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mh/comp.c b/mh/comp.c
index 075bb45..29389c6 100644
--- a/mh/comp.c
+++ b/mh/comp.c
@@ -127,15 +127,16 @@ copy_message (mu_mailbox_t mbox, size_t n, const char *file)
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";

Return to:

Send suggestions and report system problems to the System administrator.