diff options
Diffstat (limited to 'mh/forw.c')
-rw-r--r-- | mh/forw.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -377,17 +377,19 @@ finish_draft () | |||
377 | mu_stream_destroy (&stream); | 377 | mu_stream_destroy (&stream); |
378 | } | 378 | } |
379 | 379 | ||
380 | static struct mh_optinit optinit[] = { | ||
381 | { "draftfolder", "Draft-Folder" }, | ||
382 | { "whatnowproc", "whatnowproc" }, | ||
383 | { NULL } | ||
384 | }; | ||
385 | |||
380 | int | 386 | int |
381 | main (int argc, char **argv) | 387 | main (int argc, char **argv) |
382 | { | 388 | { |
383 | int rc; | 389 | int rc; |
384 | 390 | ||
385 | mh_getopt (&argc, &argv, options, MH_GETOPT_DEFAULT_FOLDER, | 391 | mh_getopt_ext (&argc, &argv, options, MH_GETOPT_DEFAULT_FOLDER, optinit, |
386 | args_doc, prog_doc, NULL); | 392 | args_doc, prog_doc, NULL); |
387 | if (!draftfolder) | ||
388 | draftfolder = mh_global_profile_get ("Draft-Folder", NULL); | ||
389 | if (!whatnowproc) | ||
390 | whatnowproc = mh_global_profile_get ("whatnowproc", NULL); | ||
391 | if (!formfile) | 393 | if (!formfile) |
392 | mh_find_file ("forwcomps", &formfile); | 394 | mh_find_file ("forwcomps", &formfile); |
393 | 395 | ||