all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [abraham@dina.kvl.dk: Re: CC (was: Re: kill ring menu)]
Date: 03 May 2002 21:12:39 +0900	[thread overview]
Message-ID: <873cx9a0qw.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: <200205030819.g438JTZ28797@hamm.pajato.com>

Paul Michael Reilly <pmr@pajato.com> writes:
> If either a Mail-Followup-To or Mail-Copies-To header exists in the
> message being replied to AND the user has not edited the default
> reply-to list at mail-send time, then the followup header(s) will be
> processed and any mailboxes indicated by the header(s) will be
> included in the reply.  "never" and "nobody" will be treated as
> synonymous, as will "always" and "poster".

It's a bit hard to tell from the above paragraph the actual algorithm you
intend to use, but here's what I gather is correct way to calculate
outgoing addresses for followups (the MFT parts are based on Dan
Bernstein's FAQ about MFT <http://cr.yp.to/proto/replyto.html>):

   If the message has a Mail-Followup-To: header, then
       outgoing To: <= incoming Mail-Followup-To:
       outgoing CC: <= empty
       ;; you can also optionally add an outgoing Mail-Followup-To: if
       ;; the current user is on the mailing list; it should probably just
       ;; be a copy of the incoming Mail-Followup-To: in that case.]
   else if the message has a Mail-Copies-To: header, then
       if the MCT header contains `never' or `nobody', then
           outgoing To: <= incoming To:
           outgoing CC: <= incoming CC:
       else if the MCT header contains `always' or `poster', then
           ;; this is the same as the default (no MCT/MFT) case
           outgoing To: <= incoming Reply-To:/From:
           outgoing CC: <= incoming CC: + To:
       else (the MCT header contains some addresses)
           outgoing To: <= incoming Mail-Copies-To:
           outgoing CC: <= incoming CC: + To:
   else (the message has no MFT/MCT header)
       outgoing To: <= incoming Reply-To:/From:
       outgoing CC: <= incoming CC: + To:

This is all calculated when generating the message to insert into the
reply buffer, before popping it up and letting the user type into it.
There doesn't seem to be any need to detect whether the user modified a
header or anything like that.

-Miles
-- 
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over.  --Ian Wolff

  parent reply	other threads:[~2002-05-03 12:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200205010713.g417DS607248@aztec.santafe.edu>
2002-05-03  8:19 ` [abraham@dina.kvl.dk: Re: CC (was: Re: kill ring menu)] Paul Michael Reilly
2002-05-03  8:25   ` Simon Josefsson
2002-05-03 10:45   ` Per Abrahamsen
2002-05-03 11:57     ` Miles Bader
2002-05-03 12:51       ` Per Abrahamsen
2002-05-03 13:00         ` Miles Bader
2002-05-03 12:12   ` Miles Bader [this message]
2002-05-03 12:57     ` Per Abrahamsen
2002-05-03 13:03       ` Miles Bader

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=873cx9a0qw.fsf@tc-1-100.kawasaki.gol.ne.jp \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.