diff options
Diffstat (limited to 'mh/repl.c')
-rw-r--r-- | mh/repl.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -289,19 +289,19 @@ make_draft (mu_mailbox_t mbox, int disp, struct mh_whatnow_env *wh) | |||
289 | } | 289 | } |
290 | } | 290 | } |
291 | 291 | ||
292 | static struct mh_optinit optinit[] = { | ||
293 | { "draftfolder", "Draft-Folder" }, | ||
294 | { "whatnowproc", "whatnowproc" }, | ||
295 | { NULL } | ||
296 | }; | ||
297 | |||
292 | int | 298 | int |
293 | main (int argc, char **argv) | 299 | main (int argc, char **argv) |
294 | { | 300 | { |
295 | int rc; | 301 | int rc; |
296 | 302 | ||
297 | mh_getopt (&argc, &argv, options, MH_GETOPT_DEFAULT_FOLDER, | 303 | mh_getopt_ext (&argc, &argv, options, MH_GETOPT_DEFAULT_FOLDER, optinit, |
298 | args_doc, prog_doc, NULL); | 304 | args_doc, prog_doc, NULL); |
299 | |||
300 | if (!draftfolder) | ||
301 | draftfolder = mh_global_profile_get ("Draft-Folder", NULL); | ||
302 | if (!whatnowproc) | ||
303 | whatnowproc = mh_global_profile_get ("whatnowproc", NULL); | ||
304 | |||
305 | 305 | ||
306 | if (!format_str) | 306 | if (!format_str) |
307 | format_str = default_format_str; | 307 | format_str = default_format_str; |