org-mime: now using `temporary-file-directory' instead of "/tmp" -- thanks to Uday S Reddy for catching this

This commit is contained in:
Eric Schulte 2010-05-04 09:49:07 -06:00
parent a3cc050a96
commit a16e887fff
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ export that region, otherwise export the entire body."
;; TODO: should catch signature...
(point-max)))
(raw-body (buffer-substring html-start html-end))
(tmp-file (make-temp-name (expand-file-name "mail" "/tmp/")))
(tmp-file (make-temp-name (expand-file-name "mail" temporary-file-directory)))
(body (org-mime-org-export "org" raw-body tmp-file))
;; because we probably don't want to skip part of our mail
(org-export-skip-text-before-1st-heading nil)