1
0
forked from pool/mutt
mutt/mutt-1.5.9i-sendgroupreplyto.diff

46 lines
1.1 KiB
Diff

--- mutt-1.5.9/init.h
+++ mutt-1.5.9/init.h
@@ -2305,6 +2305,13 @@
** .pp
** Also see the ``$$force_name'' variable.
*/
+ { "send_group_reply_to", DT_BOOL, R_NONE, OPTSENDGROUPREPLYTO, 0 },
+ /*
+ ** .pp
+ ** This variable controls how group replies are done.
+ ** When set, all recepients listet in "To:" are set in the
+ ** "To:" header again, else in the "CC", which is the default.
+ */
{ "score", DT_BOOL, R_NONE, OPTSCORE, 1 },
/*
** .pp
--- mutt-1.5.9/mutt.h
+++ mutt-1.5.9/mutt.h
@@ -419,6 +419,7 @@
OPTSAVEADDRESS,
OPTSAVEEMPTY,
OPTSAVENAME,
+ OPTSENDGROUPREPLYTO,
OPTSCORE,
OPTSIGDASHES,
OPTSIGONTOP,
--- mutt-1.5.9/send.c
+++ mutt-1.5.9/send.c
@@ -545,8 +545,16 @@
if ((flags & SENDGROUPREPLY) && (!in->mail_followup_to || hmfupto != M_YES))
{
/* if(!mutt_addr_is_user(in->to)) */
+ if (option (OPTSENDGROUPREPLYTO))
+ {
+ rfc822_append (&out->to, in->to);
+ rfc822_append (&out->cc, in->cc);
+ }
+ else
+ {
rfc822_append (&out->cc, in->to);
rfc822_append (&out->cc, in->cc);
+ }
}
}
return 0;