- * Remove any relevant private sequences
- * or attributes from context file.
- */
- rma (folder);
-
- chdir ("..");
- if (others == 0 && remdir (maildir))
- return OK;
+ ** Remove any relevant private sequences
+ ** or attributes from context file.
+ */
+ rma(folder);
+
+ chdir("..");
+ 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");
+ }