[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix MH-E mail composition with GNU Mailutils

From: Mike Kupfer
Subject: [PATCH] Fix MH-E mail composition with GNU Mailutils
Date: Sat, 30 Jun 2018 12:00:40 -0700

Currently, trying to compose a message using MH-E with Mailutils fails:
no composition buffer is created, and the user gets an obscure error
message about deleting a non-empty directory.  This has been broken for
awhile (i.e., it's not a regression in 26.1), but the fix is pretty
simple.  Is this okay for emacs-26?

diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index a9f809cfa1..aa22df8b18 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -925,8 +925,10 @@ mh-bare-components
                      (list "-form" mh-comp-formfile)))
     (setq new (make-temp-file "comp."))
     (rename-file (concat temp-folder "/" "1") new t)
-    (delete-file (concat temp-folder "/" ".mh_sequences"))
-    (delete-directory temp-folder)
+    ;; The temp folder could contain various metadata files.  Rather
+    ;; than trying to enumerate all the known files, just do a
+    ;; recursive delete on the directory.
+    (delete-directory temp-folder t)
 (defun mh-read-draft (use initial-contents delete-contents-file)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]