John Flood <
jflo...@gmail.com> writes:
> I have been using mblaze for a certain number of weeks after using mutt
> (still installed) for several years. I am still getting used to it.
>
> I don't know if there is a better way of raising my issue, but I would just
> note that from my point of view, the default action of mrep, which is
> "reply to all" has the result that, unless one is vigilant, as we all know,
> one may end up sending messages to many people that may contain information
> intended for only one or a few. As a result, one may unintentionally end
> up offending some, causing division in a group or simply spreading
> information that is better kept confidential.
>
> So, I am just expressing the wish that there was a way for one to make a
> more deliberate choice to "reply to all" in order to avoid inadvertent
> mistakes. With vim as an editor, it is, of course, very easy to delete all
> Cc: addresses, but occasionally we all do things in a hurry or when
> distracted and some people even make the mistake when there is a deliberate
> choice as in Gmail itself.
I disagree, in 99% of cases, Reply All is what you want, and as you
say, the adresses are shown and furthermore, it's easier to delete
messages than to look them up and add them manually.
So mrep will definitely keep Reply All as default, but
this does not mean we can't add "reply directly" command or flag.
I think this just needs to toggle the Cc: generation.
Try this:
diff --git a/mcom b/mcom
index 057a998..50b48cb 100755
--- a/mcom
+++ b/mcom
@@ -110,6 +110,7 @@ defaultc=e
hdrs=
resume=
noquote=
+nogroup=
case "$0" in
*mcom*)
hdr=to
@@ -217,6 +218,9 @@ case "$0" in
-noquote)
noquote=1
shift;;
+ -nogroup)
+ nogroup=1
+ shift;;
-??*)
hdr=${1#-}
shift;;
@@ -357,10 +361,12 @@ fi
to=$(mhdr -d -h reply-to "$1")
[ -z "$to" ] && to=$(mhdr -d -h from "$1")
printf 'To: %s\n' "$to"
- printf 'Cc: %s\n' \
- "$(mhdr -d -A -h to:cc: "$1" |
- notmine |grep -Fv -e "$to" |
- ouniq |commajoin)"
+ if [ -z "$nogroup" ]; then
+ printf 'Cc: %s\n' \
+ "$(mhdr -d -A -h to:cc: "$1" |
+ notmine |grep -Fv -e "$to" |
+ ouniq |commajoin)"
+ fi
printf 'Bcc: \n'
printf '%s\n' "$hdrs" | awk '{ print }' |
msed "/body/d" -
hth,
--
Leah Neukirchen <
le...@vuxu.org>
https://leahneukirchen.org/