]> diplodocus.org Git - nmh/blobdiff - uip/new.c
Fixed quoting of filename, expanded C-T parameter values, etc.,
[nmh] / uip / new.c
index 59b5b8cfb06b4934cc83def90e55fdef6e523a05..6f9982528c50111ade88551a63ac45616ac6062f 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -422,11 +422,7 @@ main(int argc, char **argv)
     char *unseen;
     struct node *folder;
 
-    setlocale(LC_ALL, "");
-    invo_name = r1bindex(argv[0], '/');
-
-    /* read user profile/context */
-    context_read();
+    if (nmh_init(argv[0], 1)) { return 1; }
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;