Steffen Daode Nurpmeso | 9 May 2012 15:29

New toascc option

No regressions yet.
I know the name is sick.

    Add *toascc* option..

    By default replying to a mail combines From: and To: and leaves
    Cc: untouched.  RFC 5322 however states:

      If a reply is sent to a message that has destination fields,
      it is often desirable to send a copy of the reply to all of
      the recipients of the message, in addition to the author.
      When such a reply is formed, addresses in the "To:" and "Cc:"
      fields of the original message MAY appear in the "Cc:" field
      of the reply, since these are normally secondary recipients of
      the reply.

    So this option can be used to toggle the default behaviour
    accordingly, causing the reply to go To: the sender only and
    moving and appending all recipients that were in To: to Cc:.

diff --git a/cmd3.c b/cmd3.c
index cb19e2b..c713952 100644
--- a/cmd3.c
+++ b/cmd3.c
 <at>  <at>  -345,7 +345,7  <at>  <at>  respond_internal(int *msgvec, int recipient_record)
 			rcv = nameof(mp, 1);
 	if (rcv != NULL)
 		np = sextract(rcv, GTO|gf);
-	if ((cp = hfield("to", mp)) != NULL)
+	if (! value("toascc") && (cp = hfield("to", mp)) != NULL)
(Continue reading)

neitzel | 12 May 2012 13:45
Picon

Re: New toascc option

Steffen patched:
>
>     Add *toascc* option..
>     [...]
>     So this option can be used to toggle the default behaviour
>     accordingly, causing the reply to go To: the sender only and
>     moving and appending all recipients that were in To: to Cc:.

Very much appreciated, I always missed that!  (This reply is already
using the patch, and I hope Gunnar is going to include it, too.)

Because it took me some time to understand what this patch is about
(see below), here is another description for nail-devel followers:

Assume you get an email like this:

	From: a
	To: b, c
	Cc: d, e

and repyall (r/R depending on your flipr setting) to it.
Standard nail behaviour will setup these fields:

	From: you
	To: a, b, c
	Cc: d, e

With Steffen's toascc option:

	From: you
(Continue reading)

Steffen Daode Nurpmeso | 12 May 2012 17:01

Re: New toascc option

Martin wrote:

 | Steffen patched:
 | >
 | >     Add *toascc* option..
 | >     [...]
 |
 | Very much appreciated, I always missed that!  (This reply is already
 | using the patch, and I hope Gunnar is going to include it, too.)

 | Here is my attempt at wording things:
 |
 | 	onlyfromto	On group replies, address only the sender
 | 			in the new "To:" field, any other recipients
 | 			are addressed via "Cc:".  (Default behaviour is
 | 			the preserve To/Cc structure.)

Well it became

  Causes a primary reply `To:' the sender by moving the addresses
  of the recipients of the original mail to the secondary `Cc:'.

in the meanwhile, sorry :)

What is really missing in my view is Mail-Followup-To:, but i'm
not gonna make it this weekend no more.
It's not yet completely thought through, but, as [rR]esponse is
yet only an alias for [rR]eply, i thought about changing this to
honour Mail-Followup-To: if present and create Mail-Followup-To:
(group-response: without user, User-Response: with user included).
(Continue reading)


Gmane