summaryrefslogtreecommitdiff
path: root/lisp/mh-e/mh-comp.el
diff options
context:
space:
mode:
authorMike Kupfer <mkupfer@alum.berkeley.edu>2018-07-04 15:43:04 -0700
committerMike Kupfer <mkupfer@alum.berkeley.edu>2018-07-04 15:43:04 -0700
commitb73cde5e2815c531df7f5fd13e214a7d92f78239 (patch)
tree34b99a6b063deb7520592d2dcc52a4ab88c4d076 /lisp/mh-e/mh-comp.el
parent0dce5e59206db7bd0b9cd43ae712272105300ae4 (diff)
downloademacs-b73cde5e2815c531df7f5fd13e214a7d92f78239.tar.gz
Fix MH-E mail composition with GNU Mailutils (SF#485)
* lisp/mh-e/mh-comp.el (mh-bare-components): Recursively delete the temporary folder.
Diffstat (limited to 'lisp/mh-e/mh-comp.el')
-rw-r--r--lisp/mh-e/mh-comp.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index a9f809cfa13..aa22df8b187 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -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)