From: Uwe Brauer <oub@mat.ucm.es>
To: Org mailing list <emacs-orgmode@gnu.org>
Subject: org-capture-templates: how to automatically insert the mail body
Date: Sat, 28 Dec 2024 17:20:46 +0100 [thread overview]
Message-ID: <87cyhbsrs1.fsf@mat.ucm.es> (raw)
[-- Attachment #1: Type: text/plain, Size: 918 bytes --]
Hi
I decided to use org-capture and the corresponding org-capture-templates
to save mail into an org file.
For example the following works
#+begin_src emacs-lisp
(setq org-capture-templates
'(("hi" "Hg Issues Discussions"
entry (file+headline "~/Some-file.org" "Issues")
"** %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- Subject :: %:subject\n- Date :: %:date\n- Email :: %a\n\n%?\n%i")))
#+end_src
However the mail body is only included if I mark it before calling
org-capture.
Is there any function/variable I miss that would insert the body
automatically like
%:body
Thanks
Uwe Brauer
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5684 bytes --]
next reply other threads:[~2024-12-28 16:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-28 16:20 Uwe Brauer [this message]
2024-12-28 19:54 ` [SOLVED] (was: org-capture-templates: how to automatically insert the mail body) Uwe Brauer via General discussions about Org-mode.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cyhbsrs1.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.