Browse Source

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

Eric Schulte 15 years ago
parent
commit
a16e887fff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-mime.el

+ 1 - 1
contrib/lisp/org-mime.el

@@ -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)