1
0
forked from pool/mutt
mutt/mutt-1.5.20-sendgroupreplyto.diff
2016-05-12 14:10:16 +00:00

52 lines
1.3 KiB
Diff

---
init.h | 7 +++++++
mutt.h | 1 +
send.c | 8 ++++++++
3 files changed, 16 insertions(+)
--- init.h
+++ init.h 2009-06-25 22:00:00.000000000 +0000
@@ -2645,6 +2645,13 @@ struct option_t MuttVars[] = {
** .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.h
+++ mutt.h 2009-06-25 22:00:00.000000000 +0000
@@ -457,6 +457,7 @@ enum
OPTSAVEADDRESS,
OPTSAVEEMPTY,
OPTSAVENAME,
+ OPTSENDGROUPREPLYTO,
OPTSCORE,
#ifdef USE_SIDEBAR
OPTSIDEBAR,
--- send.c
+++ send.c 2009-06-26 10:24:12.832816460 +0000
@@ -563,8 +563,16 @@ int mutt_fetch_recips (ENVELOPE *out, EN
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, 0);
+ rfc822_append (&out->cc, in->cc, 1);
+ }
+ else
+ {
rfc822_append (&out->cc, in->to, 1);
rfc822_append (&out->cc, in->cc, 1);
+ }
}
}
return 0;