X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhpath.c;h=bb77996cfa4456bc612bf10b75743c2caff4ddd4;hb=49856d905bfbaf3025967cbfe7631440978bccc8;hp=00983d52b4d091554743ec39bd26ec1302610b0a;hpb=174d375bb4b9bcaa0c3f28c422216f68703494a8;p=mmh diff --git a/uip/mhpath.c b/uip/mhpath.c index 00983d5..bb77996 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -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. @@ -57,17 +55,17 @@ main(int argc, char **argv) snprintf (buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); } } if (*cp == '+' || *cp == '@') { 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; }