X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4ea717b986c4b0ce9ccd01687c7b50bd2ab227ca..bf58e45a34dcf8300098abff38c4e7393152f365:/uip/mhstore.c diff --git a/uip/mhstore.c b/uip/mhstore.c index 79f335e5..fb5349fa 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -48,9 +48,6 @@ DEFINE_SWITCH_ARRAY(MHSTORE, switches); int save_clobber_policy (const char *); extern int files_not_clobbered; -/* mhparse.c */ -extern char *tmp; /* directory to place temp files */ - /* mhcachesbr.c */ extern int rcachesw; extern int wcachesw; @@ -106,15 +103,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; @@ -269,16 +260,6 @@ do_cache: */ cwd = getcpy (pwd()); - /* - * 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));