X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ffolder.c;h=4f43b9fc56b639a0225cb36f68307b3186249a6b;hb=cbaaccc109298129f33411909d68e772d138bb1b;hp=0676bea06314b0c3d9cb92e34983a38a9c70bd04;hpb=5ccbd49adba7e6d48f4094fa6eade7a7fb8ec4cf;p=mmh diff --git a/uip/folder.c b/uip/folder.c index 0676bea..4f43b9f 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -151,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; @@ -341,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);