X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/24fb3aa13c05253e65730e1587def692a598c607..cdbb097c8f061dfea2e92f0beafc64fdf50a4eb7:/uip/mhlist.c diff --git a/uip/mhlist.c b/uip/mhlist.c index f6208ddb..f37041c3 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -47,9 +47,6 @@ DEFINE_SWITCH_ARRAY(MHLIST, switches); #undef X -/* mhparse.c */ -extern char *tmp; /* directory to place temp files */ - /* mhcachesbr.c */ extern int rcachesw; extern int wcachesw; @@ -107,15 +104,9 @@ main (int argc, char **argv) struct msgs *mp = NULL; CT ct, *ctp; - 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; @@ -245,16 +236,6 @@ do_cache: cache_private = ".cache"; cache_private = getcpy (m_maildir (cache_private)); - /* - * Check for storage directory. If specified, - * then store temporary files there. Else we - * store them in standard nmh directory. - */ - if ((cp = context_find (nmhstorage)) && *cp) - tmp = concat (cp, "/", invo_name, NULL); - else - tmp = add (m_maildir (invo_name), NULL); - if (!context_find ("path")) free (path ("./", TFOLDER));