Removed unneeded sbr code.
[mmh] / uip / rmf.c
index a53fe4c..f3c335e 100644 (file)
--- 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;