Blame SOURCES/emacs-mh-rmail-nonempty-dir.patch

97d924
From b73cde5e2815c531df7f5fd13e214a7d92f78239 Mon Sep 17 00:00:00 2001
97d924
From: Mike Kupfer <mkupfer@alum.berkeley.edu>
97d924
Date: Wed, 4 Jul 2018 15:43:04 -0700
97d924
Subject: [PATCH] Fix MH-E mail composition with GNU Mailutils (SF#485)
97d924
97d924
* lisp/mh-e/mh-comp.el (mh-bare-components): Recursively delete
97d924
the temporary folder.
97d924
---
97d924
 lisp/mh-e/mh-comp.el | 6 ++++--
97d924
 1 file changed, 4 insertions(+), 2 deletions(-)
97d924
97d924
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
97d924
index a9f809cfa1..aa22df8b18 100644
97d924
--- a/lisp/mh-e/mh-comp.el
97d924
+++ b/lisp/mh-e/mh-comp.el
97d924
@@ -925,8 +925,10 @@ mh-bare-components
97d924
                      (list "-form" mh-comp-formfile)))
97d924
     (setq new (make-temp-file "comp."))
97d924
     (rename-file (concat temp-folder "/" "1") new t)
97d924
-    (delete-file (concat temp-folder "/" ".mh_sequences"))
97d924
-    (delete-directory temp-folder)
97d924
+    ;; The temp folder could contain various metadata files.  Rather
97d924
+    ;; than trying to enumerate all the known files, just do a
97d924
+    ;; recursive delete on the directory.
97d924
+    (delete-directory temp-folder t)
97d924
     new))
97d924
 
97d924
 (defun mh-read-draft (use initial-contents delete-contents-file)
97d924
-- 
97d924
2.36.1
97d924