diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2017-06-15 22:09:30 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-06-15 22:09:30 +0300 |
commit | 26301eb79f56f882d5e4718cba85a48711eff93d (patch) | |
tree | 2a09b875e5e46fc73403e92362a3bd33dc84a42b /mh/comp.c | |
parent | 8b5715db380634336a231b0c8573c350992c8dce (diff) | |
parent | fe90e86dac8c9c91a35347ee5bb4513195263ee2 (diff) | |
download | mailutils-locus.tar.gz mailutils-locus.tar.bz2 |
Merge branch 'master' into locuslocus
Diffstat (limited to 'mh/comp.c')
-rw-r--r-- | mh/comp.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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"; |