]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix MH-E mail composition with GNU Mailutils (SF#485)
authorMike Kupfer <mkupfer@alum.berkeley.edu>
Wed, 4 Jul 2018 22:43:04 +0000 (15:43 -0700)
committerMike Kupfer <mkupfer@alum.berkeley.edu>
Wed, 4 Jul 2018 22:43:04 +0000 (15:43 -0700)
* lisp/mh-e/mh-comp.el (mh-bare-components): Recursively delete
the temporary folder.

lisp/mh-e/mh-comp.el

index a9f809cfa1363a8ae0debdf7d5d258909a2003ba..aa22df8b1877b27861a939455f0c2f5d13053f02 100644 (file)
@@ -925,8 +925,10 @@ CONFIG is the window configuration before sending mail."
                      (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)
     new))
 
 (defun mh-read-draft (use initial-contents delete-contents-file)