summaryrefslogtreecommitdiff
path: root/mh/comp.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-06-15 22:09:30 +0300
committerSergey Poznyakoff <gray@gnu.org>2017-06-15 22:09:30 +0300
commit26301eb79f56f882d5e4718cba85a48711eff93d (patch)
tree2a09b875e5e46fc73403e92362a3bd33dc84a42b /mh/comp.c
parent8b5715db380634336a231b0c8573c350992c8dce (diff)
parentfe90e86dac8c9c91a35347ee5bb4513195263ee2 (diff)
downloadmailutils-26301eb79f56f882d5e4718cba85a48711eff93d.tar.gz
mailutils-26301eb79f56f882d5e4718cba85a48711eff93d.tar.bz2
Merge branch 'master' into locuslocus
Diffstat (limited to 'mh/comp.c')
-rw-r--r--mh/comp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mh/comp.c b/mh/comp.c
index 075bb4516..29389c69e 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.