diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-10-22 14:29:20 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-10-22 14:29:20 +0300 |
commit | d153077cd608fc034e61e046c59ff46159223b31 (patch) | |
tree | b274e3164f30dd895920e34ccc34b8b2c27028bf /mh/comp.c | |
parent | e267ac86e2c3a78979fe12bdd16392f30f8d1725 (diff) | |
download | mailutils-d153077cd608fc034e61e046c59ff46159223b31.tar.gz mailutils-d153077cd608fc034e61e046c59ff46159223b31.tar.bz2 |
MH: Fix MH-E compatibility
* include/mailutils/cli.h (mu_version_func): Rename to mu_version_hook.
* libmailutils/cli/cli.c: Likewise.
* pop3d/popauth.c: Likewise.
* mh/mh_getopt.c: (mh_getopt): Initialize NLS support. Install
standard version hook (needed for mh-e autodetect feature).
* mh/ali.c: Update prog_doc. Remove NLS initialization.
* mh/anno.c: Likewise
* mh/burst.c: Likewise
* mh/comp.c: Likewise
* mh/fmtcheck.c: Likewise
* mh/folder.c: Likewise
* mh/forw.c: Likewise
* mh/inc.c: Likewise
* mh/install-mh.c: Likewise
* mh/mark.c: Likewise
* mh/mhl.c: Likewise
* mh/mhn.c: Likewise
* mh/mhparam.c: Likewise
* mh/mhpath.c: Likewise
* mh/mhseq.c: Likewise
* mh/msgchk.c: Likewise
* mh/pick.c: Likewise
* mh/prompter.c: Likewise
* mh/refile.c: Likewise
* mh/repl.c: Likewise
* mh/rmf.c: Likewise
* mh/rmm.c: Likewise
* mh/scan.c: Likewise
* mh/send.c: Likewise
* mh/show.c: Likewise
* mh/sortm.c: Likewise
* mh/whatnow.c: Likewise
* mh/whom.c: Likewise
Diffstat (limited to 'mh/comp.c')
-rw-r--r-- | mh/comp.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -21,7 +21,7 @@ #include <sys/types.h> #include <sys/stat.h> -static char prog_doc[] = N_("GNU MH comp"); +static char prog_doc[] = N_("Compose a message"); static char args_doc[] = N_("[MSG]"); struct mh_whatnow_env wh_env = { 0 }; @@ -131,14 +131,10 @@ copy_message (mu_mailbox_t mbox, size_t n, const char *file) int main (int argc, char **argv) { - /* Native Language Support */ - MU_APP_INIT_NLS (); - draftfolder = mh_global_profile_get ("Draft-Folder", NULL); whatnowproc = mh_global_profile_get ("whatnowproc", NULL); - mh_getopt (&argc, &argv, options, 0, - args_doc, prog_doc, NULL); + mh_getopt (&argc, &argv, options, 0, args_doc, prog_doc, NULL); if (use_draft) draftmessage = "cur"; if (!formfile) |