From: Dmitry Yaitskov <dimas@home.com>
Subject: message-reply-to-function bug?
Date: 19 May 2000 11:11:56 -0400 [thread overview]
Message-ID: <87g0reo9qb.fsf@lucy.mtth1.on.wave.home.com> (raw)
Hi,
Info for message-reply-to-function says that it can return either a
string which will be used as the To header, or a list of header-value
pairs.
I tried to use From instead of Reply-to for certain addresses, like
this:
(setq message-reply-to-function
(lambda ()
(cond ((equal (mail-fetch-field "reply-to") "qq@aa.com")
(mail-fetch-field "from"))
(t
nil))))
In gnus 5.8.7, this generates an error:
Signaling: (wrong-type-argument listp ?D)
message-setup(((Subject . "Re: printing") ?J ?o ?h ?n ?\ ?D ?o ?e ?\ ?< ?d ?o ?e ?@ ?a ?a ?\. ?c ?o ?m ?> (References . "<39254725.4CB646D3@aa.com>")) #<buffer " *gnus article copy*">)
message-reply(nil nil)
gnus-summary-reply((2498) nil)
gnus-summary-reply-with-original(nil)
call-interactively(gnus-summary-reply-with-original)
Which looks like a bug, at least in the docs. The following version
works though:
(setq message-reply-to-function
(lambda ()
(cond ((equal (mail-fetch-field "reply-to") "qq@aa.com")
(list (cons 'To (mail-fetch-field "from"))))
(t
nil))))
--
Cheers,
-Dima.
next reply other threads:[~2000-05-19 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-19 15:11 Dmitry Yaitskov [this message]
2000-05-19 15:39 ` Shenghuo ZHU
2000-05-19 19:07 ` Dmitry Yaitskov
2000-05-19 19:21 ` Shenghuo ZHU
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=87g0reo9qb.fsf@lucy.mtth1.on.wave.home.com \
--to=dimas@home.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.
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).