Explorar o código

org-mime: set message subject from buffer title

* contrib/lisp/org-mime.el (org-mime-org-buffer-htmlize): Set message
  subject from buffer title.
Eric Schulte %!s(int64=14) %!d(string=hai) anos
pai
achega
f68f1e6055
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      contrib/lisp/org-mime.el

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

@@ -215,6 +215,7 @@ handling with appropriate MIME encoding."
   (require 'reporter)
   (let* ((region-p (org-region-active-p))
          (current-file (buffer-file-name (current-buffer)))
+	 (title (org-export-grab-title-from-buffer))
          (html-start (or (and region-p (region-beginning))
                          (save-excursion
                            (goto-char (point-min)))))
@@ -233,7 +234,7 @@ handling with appropriate MIME encoding."
          (html-images (cdr html-and-images))
          (html (org-mime-apply-html-hook (car html-and-images))))
     ;; dump the exported html into a fresh message buffer
-    (reporter-compose-outgoing)
+    (message-mail nil title)
     (message-goto-body)
     (prog1 (insert (org-mime-multipart body html)
 		   (mapconcat 'identity html-images "\n"))