From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: carry over headers into reply
Date: Sat, 02 Jun 2012 20:02:48 +0800 [thread overview]
Message-ID: <87zk8l9b13.fsf@ericabrahamsen.net> (raw)
I've been trying for a while to figure out how to draw the value of a
custom header from an edited mail message (the header inserted via
another function) and insert it into a reply to that message. I can't
seem to find any hooks (or even efficient places to advise functions)
that will let me slurp a header value from the original message, and
then place it in the reply that's being composed.
I've considered `message-fetch-reply-field' (which seemed promising),
and a custom `message-reply-to-function', and also advising
`message-get-reply-headers', but everything seems to only let me carry
over To and Cc headers from the original, not arbitrary headers.
I can always kludge it with some global variable and two advice forms,
but I'd much rather find something more graceful.
Is there anywhere where either advice or a hook can use
`message-fetch-reply-field' to get fields from the original, while
operating in the reply buffer?
If anyone who knows this code has a word of advice, I would love to hear
it!
Thanks,
Eric
--
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
of 2012-06-01 on pellet
Ma Gnus v0.6
next reply other threads:[~2012-06-02 12:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 12:02 Eric Abrahamsen [this message]
2012-06-03 9:05 ` Eric Abrahamsen
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=87zk8l9b13.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).