emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture-templates: how to automatically insert the mail body
@ 2024-12-28 16:20 Uwe Brauer
  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.
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Brauer @ 2024-12-28 16:20 UTC (permalink / raw)
  To: Org mailing list

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [SOLVED] (was: org-capture-templates: how to automatically insert the mail body)
  2024-12-28 16:20 org-capture-templates: how to automatically insert the mail body Uwe Brauer
@ 2024-12-28 19:54 ` Uwe Brauer via General discussions about Org-mode.
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Brauer via General discussions about Org-mode. @ 2024-12-28 19:54 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

>>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes:

> Hi 



> 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

I found a solution in 
https://orgmode.org/worg/org-contrib/org-mac-mail-link.html

That I modified a bit for my needs. Problem solved

> 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-28 19:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-28 16:20 org-capture-templates: how to automatically insert the mail body Uwe Brauer
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.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).