X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/756c7e975f30450280d7a7dc144658c163a19a96..8186ba3712898c3c0dfa1e23c9e85a9a2b50bb87:/uip/mhn.c diff --git a/uip/mhn.c b/uip/mhn.c index 49c784b9..220a73d5 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -132,9 +132,6 @@ void flush_errors (void); /* mhshowsbr.c */ void show_all_messages (CT *); -/* mhlistsbr.c */ -void list_all_messages (CT *, int, int, int, int); - /* mhstoresbr.c */ void store_all_messages (CT *); @@ -164,15 +161,9 @@ main (int argc, char **argv) CT ct, *ctp; FILE *fp; - done=freects_done; - -#ifdef LOCALE - setlocale(LC_ALL, ""); -#endif - invo_name = r1bindex (argv[0], '/'); + if (nmh_init(argv[0], 1)) { return 1; } - /* read user profile/context */ - context_read(); + done=freects_done; arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -562,7 +553,7 @@ do_cache: * List the message content */ if (listsw) - list_all_messages (cts, headsw, sizesw, verbosw, debugsw); + list_all_messages (cts, headsw, sizesw, verbosw, debugsw, 0); /* * Store the message content