mu4e: moved 'tmp-file' deletion at the right place.
This commit is contained in:
@ -180,9 +180,8 @@ be changed by setting `mu4e-view-prefer-html'."
|
|||||||
((stringp mu4e-html2text-command)
|
((stringp mu4e-html2text-command)
|
||||||
(let* ((tmp-file (make-temp-file "mu4e-html")))
|
(let* ((tmp-file (make-temp-file "mu4e-html")))
|
||||||
(write-region (point-min) (point-max) tmp-file)
|
(write-region (point-min) (point-max) tmp-file)
|
||||||
(mu4e-process-file-through-pipe tmp-file mu4e-html2text-command))
|
(mu4e-process-file-through-pipe tmp-file mu4e-html2text-command)
|
||||||
(delete-file tmp-file)
|
(delete-file tmp-file)))
|
||||||
)
|
|
||||||
((functionp mu4e-html2text-command)
|
((functionp mu4e-html2text-command)
|
||||||
(funcall mu4e-html2text-command))
|
(funcall mu4e-html2text-command))
|
||||||
(t (mu4e-error "Invalid `mu4e-html2text-command'")))
|
(t (mu4e-error "Invalid `mu4e-html2text-command'")))
|
||||||
|
|||||||
Reference in New Issue
Block a user