emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: org-capture gnus also extract from the cc field.
Date: Sat, 13 Mar 2021 08:15:21 +0100	[thread overview]
Message-ID: <87czw3sewm.fsf@mat.ucm.es> (raw)
In-Reply-To: 87pn03u381.fsf@kyleam.com

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

>>> "KM" == Kyle Meyer <kyle@kyleam.com> writes:

> Uwe Brauer writes:
>> Hi
>> 
>> This would be very useful for my workflow, actually I have 
>> 
>> ("mu" "Stat+Num: English"
>> table-line (file+headline "/somefile.org" "Exercise Group-E")
>> "| %:fromname|%:fromaddress|%^{Sheet|1|2|3|4|5|6}|%^{Exercise|1|} |  %a|%:date "  :prepend t)
>> 
>> So a %:ccname %:ccaddress would be very very useful
>> 
>> Any idea how to achieve that?

> At the minimum, it looks like you'd have to adjust two places:

>   * org-gnus-store-link to extract the cc field and call
>     org-link-store-props with it

>   * org-link-store-props to process it

Thanks, I found a simpler solution 

(defun my-extract-cc ()
  (interactive)
  (gnus-fetch-original-field "cc"))


        ("mu" "Stat+Num:Exercises English"
         table-line (file+headline "~/somefile.org" "Exercise Group-E")
         "| %:fromname|%:fromaddress | %(my-extract-cc)|%^{Sheet|1|2|3|4|5|6}|%^{Exercise|1|} |  %a|%:date | "  :prepend t)


No ideal but will do for the moment.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2021-03-13  7:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 17:49 org-capture gnus also extract from the cc field Uwe Brauer
2021-03-13  3:44 ` Kyle Meyer
2021-03-13  7:15   ` Uwe Brauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-12 19:03 Uwe Brauer

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czw3sewm.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 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).