Gnus development mailing list
 help / color / mirror / Atom feed
From: Elias Oltmanns <oltmanns@uni-bonn.de>
Subject: Recovering newsgroup specific settings when editing drafts
Date: Wed, 12 Apr 2006 12:59:35 +0200	[thread overview]
Message-ID: <878xqbawko.fsf@denkblock.local> (raw)

Hi all,

here is a problem which I couldn't find a solution for. If you have
code hooked into message-setup-hook or message-header-setup-hook which
performs various actions depending on the current group, you would
often want to have this code referring to the original group of a
draft when pressing e in the drafts group. Good examples are changing
ispell-local-dictionary or pgg-default-user-id. Since X-Draft-From
holds the name of the group in which the message was originally
created, the obvious way is to make the code refer to this header.
However, message-fetch-field / message-field-value don't seem to have
access to this variable by the time message-(header-)setup-hook is
run. What would be the right way to accomplish my goal?

Thanks in advance,

Elias




             reply	other threads:[~2006-04-12 10:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 10:59 Elias Oltmanns [this message]
2006-04-13  1:18 ` Katsumi Yamaoka
2006-04-13 12:44   ` Elias Oltmanns

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=878xqbawko.fsf@denkblock.local \
    --to=oltmanns@uni-bonn.de \
    /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).