Removed mhn, as it was already replaced by mhlist/mhshow/mhstore.
[mmh] / uip / mhpath.c
index 00983d5..23ca542 100644 (file)
@@ -2,8 +2,6 @@
 /*
  * mhpath.c -- print full pathnames of nmh messages and folders
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
@@ -67,7 +65,7 @@ main(int argc, char **argv)
            if (folder)
                adios (NULL, "only one folder at a time!");
            else
-               folder = path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);
+               folder = pluspath (cp);
        } else
                app_msgarg(&msgs, cp);
     }
@@ -123,5 +121,6 @@ main(int argc, char **argv)
     seq_save (mp);     /* synchronize message sequences */
     context_save ();   /* save the context file         */
     folder_free (mp);  /* free folder/message structure */
-    return done (0);
+    done (0);
+    return 1;
 }