This is a multipart MIME message.
--==_Exmh_4217004600
Content-Type: text/plain; charset=us-ascii
Hi nmh developers,
nmh introduced the -group switch to repl and also changed the semantics of
the -cc switch and the associated replcomps template. This has generated
lots of confusion among people switching from MH to nmh. In this message
is a proposal and a patch to partly revert to the MH-style handling of the
-cc switch, while keeping the -group feature.
Comments are very much appreciated. Probably the behaviour should be
documented more clearly (i.e., in the man pages and in other relevant
files).
If there are no objections, I will check it in into the CVS tree.
In MH the repl command works as follows:
- the replcomps template contains a cc: field
- by using the "-cc me", "-cc to", "-cc cc", or "-cc all" switch, one can
specify which headers from the original message are incorporated into the
cc: field; the default is none.
In nmh, this was changed into:
- the replcomps template _no longer_ contains a cc: field
- there is a separate replgroups template which does contain the cc: field
- the default is now "-cc all" (but because of the lack of a cc: field it
is not used by default)
- to use a group reply, one must specify "-group", this will switch to the
replgroups template, which will pick up the cc recipients. (one can use
-nocc to leave out addresses).
Unfortunately, the MH style of doing group reply (repl -cc all), which is
also built into front ends like mh-e and exmh, no longer works because of
the lack of a cc: field in replcomps. I propose to change it as follows:
- replcomps contains a cc: field, like in MH
- the default for repl is -nocc all, like in MH
(so that by default, the cc field is not included)
- specifying "repl -group" implies "-cc all" so that a group reply will
have a full cc: field, like previous versions of nmh
- specifying "repl -nogroup" implies "-nocc all"
IMHO, this is sane behaviour while keeping some backwards compatibility with
both MH and nmh.
Thanks,
Ruud de Rooij.
--
ruud de rooij | [EMAIL PROTECTED] | http://ruud.org
--==_Exmh_4217004600
Content-Type: text/plain ; name="repl.diff"; charset=us-ascii
Content-Description: repl.diff
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="repl.diff"
Index: ChangeLog
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/nmh/ChangeLog,v
retrieving revision 1.18
diff -u -r1.18 ChangeLog
--- ChangeLog 1999/10/13 13:58:41 1.18
+++ ChangeLog 1999/10/15 20:13:17
@@ -1,3 +1,9 @@
+Fri Oct 15 21:48:52 1999 Ruud de Rooij <[EMAIL PROTECTED]>
+
+ * Changed repl defaults to partly revert to MH behaviour,
+ "-cc all" is now only implied with -group.
+ * The replcomps template includes cc: header again (as in MH).
+
Wed Oct 13 15:53:53 1999 Doug Morris <[EMAIL PROTECTED]>
=
* Updated manpages Makefile to link mh-profile.5 to
Index: etc/replcomps
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/nmh/etc/replcomps,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 replcomps
--- etc/replcomps 1999/04/30 18:08:35 1.1.1.1
+++ etc/replcomps 1999/10/15 20:13:39
@@ -11,8 +11,16 @@
%; Sender
%; Return-Path
%;
+%; AND
+%;
+%; cc: To (and)
+%; cc (and)
+%; personal address
+%;
%(lit)%(formataddr %<{mail-reply-to}%?{reply-to}%?{from}%?{sender}%?{ret=
urn-path}%>)\
%<(nonnull)%(void(width))%(putaddr To: )\n%>\
+%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
+%<(nonnull)%(void(width))%(putaddr cc: )\n%>\
%<{fcc}Fcc: %{fcc}\n%>\
%<{subject}Subject: Re: %{subject}\n%>\
%<{date}In-Reply-To: Your message of "\
Index: uip/repl.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/nmh/uip/repl.c,v
retrieving revision 1.2
diff -u -r1.2 repl.c
--- uip/repl.c 1999/07/16 01:27:45 1.2
+++ uip/repl.c 1999/10/15 20:13:43
@@ -108,9 +108,9 @@
{ NULL, 0 }
};
=
-short ccto =3D 1; /* global for replsbr */
-short cccc =3D 1;
-short ccme =3D 1;
+short ccto =3D 0; /* global for replsbr */
+short cccc =3D 0;
+short ccme =3D 0;
short querysw =3D 0;
=
short outputlinelen =3D OUTPUTLINELEN;
@@ -177,9 +177,11 @@
=
case GROUPSW:
groupreply++;
+ ccto =3D cccc =3D ccme =3D 1;
continue;
case NGROUPSW:
groupreply =3D 0;
+ ccto =3D cccc =3D ccme =3D 0;
continue;
=
case ANNOSW: =
--==_Exmh_4217004600--