Gnus development mailing list
 help / color / mirror / Atom feed
From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: message-reply-to-function bug?
Date: 19 May 2000 11:39:42 -0400	[thread overview]
Message-ID: <5bvh0aczwh.fsf@giga.cs.rochester.edu> (raw)
In-Reply-To: Dmitry Yaitskov's message of "19 May 2000 11:11:56 -0400"

>>>>> "Dmitry" == Dmitry Yaitskov <dimas@home.com> writes:

Dmitry> Hi,

Dmitry> Info for message-reply-to-function says that it can return
Dmitry> either a string which will be used as the To header, or a list
Dmitry> of header-value pairs.

Info? Does Info tell message-reply-to-function?  

The docs say, "function that should return a list of headers.", which
means the return value looks like ((Reply-To . "John Doe
<doe@aa.com>") (From . "John Doe <john@bb.com>")), instead of a
string.

[...]

Dmitry> Which looks like a bug, at least in the docs. The following version
Dmitry> works though:

Dmitry> (setq message-reply-to-function
Dmitry>       (lambda ()
Dmitry> 	(cond ((equal (mail-fetch-field "reply-to") "qq@aa.com")
Dmitry> 	       (list (cons 'To (mail-fetch-field "from"))))
Dmitry> 	      (t
Dmitry> 	       nil))))

This function returns a list of headers.

-- 
Shenghuo



  reply	other threads:[~2000-05-19 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-19 15:11 Dmitry Yaitskov
2000-05-19 15:39 ` Shenghuo ZHU [this message]
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=5bvh0aczwh.fsf@giga.cs.rochester.edu \
    --to=zsh@cs.rochester.edu \
    /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).