[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-mime 5f253f541c 037/118: only use export header when c
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-mime 5f253f541c 037/118: only use export header when creating html, keep out of email |
Date: |
Wed, 5 Jan 2022 07:58:45 -0500 (EST) |
branch: elpa/org-mime
commit 5f253f541cd5e5922ee114091409310aab6a4de8
Author: Kevin Brubeck Unhammer <unhammer@fsfe.org>
Commit: Kevin Brubeck Unhammer <unhammer@fsfe.org>
only use export header when creating html, keep out of email
fixes #13
---
org-mime.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/org-mime.el b/org-mime.el
index c6047e0507..d86b9aee7c 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -367,8 +367,8 @@ If ARG is not nil, use `org-mime-fixedwith-wrap' to wrap
the exported text."
(html-end (or (and region-p (region-end))
;; TODO: should catch signature...
(point-max)))
- (body (concat org-mime-default-header
- (buffer-substring html-start html-end)))
+ (body (buffer-substring html-start html-end))
+ (header-body (concat org-mime-default-header body))
(tmp-file (make-temp-name (expand-file-name
"mail" temporary-file-directory)))
;; because we probably don't want to export a huge style file
@@ -380,7 +380,7 @@ If ARG is not nil, use `org-mime-fixedwith-wrap' to wrap
the exported text."
;; to hold attachments for inline html images
(html-and-images
(org-mime-replace-images
- (org-mime--export-string body
+ (org-mime--export-string header-body
'html
(if (fboundp
'org-export--get-inbuffer-options)
(org-export--get-inbuffer-options)))
@@ -388,7 +388,7 @@ If ARG is not nil, use `org-mime-fixedwith-wrap' to wrap
the exported text."
(html-images (unless arg (cdr html-and-images)))
(html (org-mime-apply-html-hook
(if arg
- (format org-mime-fixedwith-wrap body)
+ (format org-mime-fixedwith-wrap header-body)
(car html-and-images)))))
(delete-region html-start html-end)
(save-excursion
- [nongnu] elpa/org-mime caa1f19d4b 009/118: Fix getting the subect, (continued)
- [nongnu] elpa/org-mime caa1f19d4b 009/118: Fix getting the subect, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 0311662889 017/118: Correct 'interactive' position, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime ffbf3e3e47 010/118: Support mime encoding current subtree, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime c49eb00fc6 021/118: can create email from org subtree, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime e554d8821d 020/118: Merge pull request #1 from syohex/fix-package, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 91d8f48775 023/118: can set org export options, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 7c3483b2b0 030/118: sample for advanced setup, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime e3329c7c4d 032/118: README, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 0a0aa9b110 034/118: README, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime ad30f199cb 036/118: provide org-mime-find-html-start callback, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 5f253f541c 037/118: only use export header when creating html, keep out of email,
ELPA Syncer <=
- [nongnu] elpa/org-mime c6e2b95664 047/118: clean code, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 64a3f56651 041/118: (setq org-html-with-latex nil) sometimes useful #16, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 10098b001c 049/118: Fix file attachments and equations and enhance emails from org-files, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 1e792ef061 059/118: Merge pull request #28 from titaniumbones/fix-klipse-error, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime f610861858 063/118: htmlize current subtree, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 9506727ca7 072/118: README, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime b189976217 076/118: fixed CI, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 778f818ad3 078/118: Add ASCII text/plain export test, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 9f84446038 082/118: make emacs 25 test pass, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 484bf3b0b8 083/118: can edit mail-body in org-mode buffer directly, ELPA Syncer, 2022/01/05