[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-mime 0caaf273e7 011/118: Use a plain ASCII export for
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-mime 0caaf273e7 011/118: Use a plain ASCII export for the text part |
Date: |
Wed, 5 Jan 2022 07:58:42 -0500 (EST) |
branch: elpa/org-mime
commit 0caaf273e7ab7624d7b56ff8abad1cb5699b9e1c
Author: Anthony Cowley <acowley@gmail.com>
Commit: Anthony Cowley <acowley@gmail.com>
Use a plain ASCII export for the text part
This removes some amount of Org noise (e.g. PROPERTIES drawers) in the
plain text portion of the email.
---
org-mime.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/org-mime.el b/org-mime.el
index 1a15d3bf15..da37a946fe 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -267,6 +267,7 @@ export that region, otherwise export the entire body."
(buffer-string))
body))))
(let* ((org-link-file-path-type 'absolute)
+ (plain (org-export-string-as (org-babel-trim body) 'ascii t opts))
;; we probably don't want to export a huge style file
(org-export-htmlize-output-type 'inline-css)
(html-and-images
@@ -274,7 +275,7 @@ export that region, otherwise export the entire body."
(org-mime--export-string (bhook body 'html)) file))
(images (cdr html-and-images))
(html (org-mime-apply-html-hook (car html-and-images))))
- (insert (org-mime-multipart (org-babel-trim body) html)
+ (insert (org-mime-multipart plain html)
(mapconcat 'identity images "\n"))))))
(defun org-mime-org-buffer-htmlize ()
- [nongnu] elpa/org-mime baa6cde22f 057/118: Merge pull request #25 from tmurph/blockquote-parser, (continued)
- [nongnu] elpa/org-mime baa6cde22f 057/118: Merge pull request #25 from tmurph/blockquote-parser, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 1b516d604a 056/118: remove unnecessary dependency, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 817744f3b1 062/118: remove plain text body, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 4bd5d55ba9 071/118: fixed logic, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime dd9dac74cc 073/118: doc on html export, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime d827dbfb97 077/118: Add option to export ASCII for text/plain section, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 3596bbfe10 079/118: Fix: #36 Add ASCII export for org-mime-htmlize, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 3974bd4190 093/118: make checkdoc happy, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime b47811562b 099/118: Merge pull request #52 from tomheon/fix-gmail-quoting, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 4580e345cb 102/118: add emacs 27 ci, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 0caaf273e7 011/118: Use a plain ASCII export for the text part,
ELPA Syncer <=
- [nongnu] elpa/org-mime 62791db188 033/118: beautify quoted mail properly, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 7a6dae2494 039/118: Lisp error: (error "Too many arguments") – should be defcustom, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime b9def25bf4 043/118: Edit docstrings for checkdoc compatibility., ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 6593522166 051/118: Fix: #22, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime ea7a470872 061/118: add badge, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 8de4bb693d 064/118: image could be nil, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime f8eac8ccde 066/118: restore plain text mail, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 95c33ec353 067/118: add screenshot, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 562cb5a3f0 074/118: Use compose-mail, rather than explicitly using message-mail, ELPA Syncer, 2022/01/05
- [nongnu] elpa/org-mime 7475a592c2 081/118: drop emacs 24 support, ELPA Syncer, 2022/01/05