]> diplodocus.org Git - nmh/blobdiff - uip/rmf.c
Calculate "characters to use in for current line" based on starting a new
[nmh] / uip / rmf.c
index 735cf774c3e4384171b60fe3b0f6eb06472f84ba..bb03805a1b1300fb5e3dd344b456133c131a1e79 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -37,11 +37,7 @@ main (int argc, char **argv)
     char *cp, *folder = NULL, newfolder[BUFSIZ];
     char buf[BUFSIZ], **argp, **arguments;
 
-    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;
@@ -183,7 +179,7 @@ rmf (char *folder)
                others++;
                continue;
        }
-       if (unlink (dp->d_name) == NOTOK) {
+       if (m_unlink (dp->d_name) == NOTOK) {
            admonish (dp->d_name, "unable to unlink %s:", folder);
            others++;
        }