X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ffolder.c;h=4f43b9fc56b639a0225cb36f68307b3186249a6b;hb=c897634e1c28697a6df572de00e66579567ad2a6;hp=f83bedcab0b4f83bf433f90cf1c06f502f280e8e;hpb=788c353a8bee07520ae1a1de6fb7bdcdf1f4f1c7;p=mmh diff --git a/uip/folder.c b/uip/folder.c index f83bedc..4f43b9f 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -4,8 +4,6 @@ * -- push/pop a folder onto/from the folder stack * -- list the folder stack * - * $Id$ - * * This code is Copyright (c) 2002, 2008, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -153,10 +151,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [+folder] [msg] [switches]", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case ALLSW: all = 1; @@ -343,13 +341,13 @@ main (int argc, char **argv) /* * Scan the folders */ + /* change directory to base of nmh directory for crawl_folders */ + if (chdir (nmhdir) == NOTOK) + adios (nmhdir, "unable to change directory to"); if (all || ftotal > 0) { /* * If no folder is given, do them all */ - /* change directory to base of nmh directory for crawl_folders */ - if (chdir (nmhdir) == NOTOK) - adios (nmhdir, "unable to change directory to"); if (!argfolder) { if (msg) admonish (NULL, "no folder given for message %s", msg); @@ -460,6 +458,8 @@ static boolean get_folder_info_callback (char *fold, void *baton) { boolean crawl_children; + NMH_UNUSED (baton); + get_folder_info_body (fold, NULL, &crawl_children); fflush (stdout); return crawl_children;