Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Sébastien Kirche" <sebastien.kirche.no@spam.free.fr.invalid>
Subject: Re: Lisp recipe to set From header
Date: Fri, 27 Jan 2006 23:12:22 +0100	[thread overview]
Message-ID: <87u0bpnwvt.fsf@petisuix.seki.fr> (raw)
In-Reply-To: <878xt1xsle.fsf@knight.monnsta.net>

At 22:34 on Jan 27 2006, Matthew King said :

> I don't know anywhere near enough lisp to write this though, so how
> would I go about doing this?

If I understand correctly, you should take a look to
message-alternative-emails that provides exactly that : when replying to
a message where the To: is in the alternatives, that address is
automagicaly used for the From: of the reply. Otherwise it uses the
styles or the user-mail-address.

Its value should be a regexp, so regexp-opt could be useful to build it.
Here is an example :

(setq message-alternative-emails 
      (regexp-opt (cons user-mail-address
                        '("first@domain.net"
                          "second.value@other.fr"
                          "another@value.net"
                                 ))))
HTH.
-- 
Sébastien Kirche

  reply	other threads:[~2006-01-27 22:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-27 21:34 Matthew King
2006-01-27 22:12 ` Sébastien Kirche [this message]
2006-01-27 22:39 ` David Z Maze

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=87u0bpnwvt.fsf@petisuix.seki.fr \
    --to=sebastien.kirche.no@spam.free.fr.invalid \
    --cc=sebastien.kirche@free.fr \
    /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).