]> diplodocus.org Git - nmh/blobdiff - uip/scan.c
Some tests for RFC 2231 decoding; seems like it works, but need to stress
[nmh] / uip / scan.c
index 1f487cdd9a77f1d97e441cc1784f06d07d9850e3..20668691409d0f0a2ac9decb9b84174e774a08c3 100644 (file)
@@ -52,13 +52,7 @@ main (int argc, char **argv)
     struct msgs *mp;
     FILE *in;
 
     struct msgs *mp;
     FILE *in;
 
-#ifdef LOCALE
-    setlocale(LC_ALL, "");
-#endif
-    invo_name = r1bindex (argv[0], '/');
-
-    /* read user profile/context */
-    context_read();
+    if (nmh_init(argv[0], 1)) { return 1; }
 
     mts_init (invo_name);
     arguments = getarguments (invo_name, argc, argv, 1);
 
     mts_init (invo_name);
     arguments = getarguments (invo_name, argc, argv, 1);