X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Finc.c;h=45036f5baa0877b399fdcbdda930f76939e0ddc4;hb=7edb0cbc236244d996d1e2ae1d58d0e9f7d98062;hp=a2ecb4406c987053ee428a4f600d702cf88ff0d9;hpb=ea7c3f6a1f777578447040c553ebc80dbc252f7d;p=mmh diff --git a/uip/inc.c b/uip/inc.c index a2ecb44..45036f5 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -563,10 +563,15 @@ main (int argc, char **argv) if ((maildir_copy = strdup(maildir)) == (char *)0) adios (maildir, "error allocating memory to copy maildir"); - if (noisy) - create_folder(maildir, 0, done); - else - done (1); + if (!folder_exists(maildir)) { + /* If the folder doesn't exist, and we're given the -silent flag, + * just fail. + */ + if (noisy) + create_folder(maildir, 0, done); + else + done (1); + } if (chdir (maildir) == NOTOK) adios (maildir, "unable to change directory to");