X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Frmf.c;h=f3c335e0acea4978db3465b4937fd243f1d12024;hb=b067ff5c465a5d243ce5a19e562085a9a1a97215;hp=a53fe4c9e1ed23fa8351084ee6856377980ab506;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1;p=mmh diff --git a/uip/rmf.c b/uip/rmf.c index a53fe4c..f3c335e 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -204,8 +204,14 @@ rmf (char *folder) rma (folder); chdir (".."); - if (others == 0 && remdir (maildir)) - return OK; + if (others == 0) { + context_save(); /* Is this needed? meillo 2011-10 */ + fflush(stdout); /* Is this needed? meillo 2011-10 */ + if (rmdir(maildir) != -1) { + return OK; + } + admonish (maildir, "unable to remove directory"); + } advise (NULL, "folder +%s not removed", folder); return NOTOK;