* mu4e: warn when org-export-string is not defined

This commit is contained in:
djcb 2012-08-11 12:22:36 +03:00
parent e47646e010
commit be9e9953b1
1 changed files with 32 additions and 30 deletions

View File

@ -150,6 +150,8 @@ and images in a multipart/related part."
(defun org~mu4e-mime-convert-to-html ()
"Convert the current body to html."
(if (not (fboundp 'org-export-string))
(mu4e-error "require function 'org-export-string not found.")
(let* ((begin
(save-excursion
(goto-char (point-min))
@ -179,7 +181,7 @@ and images in a multipart/related part."
(goto-char begin)
(newline)
(insert (org~mu4e-mime-multipart
body html (mapconcat 'identity html-images "\n"))))))
body html (mapconcat 'identity html-images "\n")))))))
;; next some functions to make the org/mu4e-compose-mode switch as smooth as
;; possible.