X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Ffolder.c;h=4ffb9f5b18622ee6f7eb93323e0682244a3749b5;hp=3ca0e7db23c72aaaa5330f8da3b01d90ee9bfa72;hb=b4987f510fb3494bfc5b11fc92d2047cdb51642b;hpb=5ba9c2f13fedf1d8d6ed907ef1f505616290efaa diff --git a/uip/folder.c b/uip/folder.c index 3ca0e7d..4ffb9f5 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -329,16 +329,17 @@ main(int argc, char **argv) /* ** Scan the folders */ + /* + ** change directory to base of nmh directory for + ** crawl_folders + */ + if (chdir(nmhdir) == NOTOK) { + adios(EX_OSERR, 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(EX_OSERR, nmhdir, "unable to change directory to"); if (!argfolder) { if (msg) admonish(NULL, "no folder given for message %s", msg);