summaryrefslogtreecommitdiffabout
path: root/mh/forw.c
Side-by-side diff
Diffstat (limited to 'mh/forw.c') (more/less context) (ignore whitespace changes)
-rw-r--r--mh/forw.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mh/forw.c b/mh/forw.c
index 5e0e08b..016ac84 100644
--- a/mh/forw.c
+++ b/mh/forw.c
@@ -377,17 +377,19 @@ finish_draft ()
mu_stream_destroy (&stream);
}
+static struct mh_optinit optinit[] = {
+ { "draftfolder", "Draft-Folder" },
+ { "whatnowproc", "whatnowproc" },
+ { NULL }
+};
+
int
main (int argc, char **argv)
{
int rc;
- mh_getopt (&argc, &argv, options, MH_GETOPT_DEFAULT_FOLDER,
- 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, MH_GETOPT_DEFAULT_FOLDER, optinit,
+ args_doc, prog_doc, NULL);
if (!formfile)
mh_find_file ("forwcomps", &formfile);

Return to:

Send suggestions and report system problems to the System administrator.