X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ffolder.c;h=4f43b9fc56b639a0225cb36f68307b3186249a6b;hb=ac99d23ec89df5e72b39c7ae950c084ca0377eca;hp=aea20f4a96176905cc55c649aee69ef94f1cd906;hpb=cff8de7654cf393a494b01a587bd4d503d15a5e3;p=mmh diff --git a/uip/folder.c b/uip/folder.c index aea20f4..4f43b9f 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -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);