From: Carsten Dominik <dominik@science.uva.nl>
To: Tommy Lindgren <tommy.lindgren@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] To-header support in org-gnus-store-link
Date: Wed, 3 Sep 2008 11:37:01 +0200 [thread overview]
Message-ID: <6FD7C2A0-B14D-444C-8DAF-A08D1EA93AB6@uva.nl> (raw)
In-Reply-To: <87ljz38g55.fsf@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1596 bytes --]
Appied, thanks.
- Carsten
On Aug 11, 2008, at 10:12 PM, Tommy Lindgren wrote:
> Hi,
>
> Patch below adds support for the To-header in org-gnus-store-link.
> This
> makes %:toname-escapes in remember templates work when invoked from
> Gnus. (I have a special template I use when realize I have to finish
> a reply later.)
>
> Haven't written many lines of elisp, not sure if I'm retrieving the
> header the right way. The code works for me.
>
>
> diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
> index e1d8232..db78afe 100644
> --- a/lisp/org-gnus.el
> +++ b/lisp/org-gnus.el
> @@ -87,10 +87,12 @@ negates this setting for the duration of the
> command."
> (from (mail-header-from header))
> (message-id (mail-header-id header))
> (date (mail-header-date header))
> + (extra (mail-header-extra header))
> + (to (cdr (assoc 'To extra)))
> (subject (gnus-summary-subject-string))
> desc link)
> (org-store-link-props :type "gnus" :from from :subject subject
> - :message-id message-id :group group)
> + :message-id message-id :group group :to
> to)
> (setq desc (org-email-link-description))
> (if (org-xor current-prefix-arg org-usenet-links-prefer-google)
> (setq link
>
>
> BTW, org-mode is awesome.
>
> Regards,
> Tommy
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[-- Attachment #1.2: Type: text/html, Size: 2696 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2008-09-03 9:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 20:12 [PATCH] To-header support in org-gnus-store-link Tommy Lindgren
2008-09-03 9:37 ` Carsten Dominik [this message]
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=6FD7C2A0-B14D-444C-8DAF-A08D1EA93AB6@uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=tommy.lindgren@gmail.com \
/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).