]>
Commit | Line | Data |
---|---|---|
ffc6f62d JP |
1 | Add keep_to option to control where To: recipients are copied on group-reply (To: or Cc:). |
2 | ||
3 | author: Jan Palus | |
4 | ||
5 | diff -urN mutt-1.5.23.orig/send.c mutt-1.5.23/send.c | |
6 | --- mutt-1.5.23.orig/send.c 2014-10-12 16:55:39.680846728 +0200 | |
7 | +++ mutt-1.5.23/send.c 2014-10-12 16:55:52.104179682 +0200 | |
458d46c4 AG |
8 | @@ -672,7 +672,7 @@ |
9 | (!in->mail_followup_to || hmfupto != MUTT_YES)) | |
ffc6f62d | 10 | { |
458d46c4 AG |
11 | /* if (!mutt_addr_is_user(in->to)) */ |
12 | - if (flags & SENDGROUPREPLY) | |
13 | + if ( (flags & SENDGROUPREPLY) || ! option(OPTKEEPTO) ) | |
14 | rfc822_append (&out->cc, in->to, 1); | |
15 | else | |
16 | rfc822_append (&out->to, in->to, 1); | |
8d013520 PZ |
17 | --- mutt-2.0.6/init.h.orig 2021-04-07 17:47:28.950795784 +0000 |
18 | +++ mutt-2.0.6/init.h 2021-04-07 17:48:57.734130406 +0000 | |
19 | @@ -1874,6 +1874,12 @@ | |
18723767 AG |
20 | ** If \fIset\fP, convert the date in the Date header of sent emails into local |
21 | ** (sender's) timezone. | |
ffc6f62d JP |
22 | */ |
23 | + { "keep_to", DT_BOOL, R_NONE, OPTKEEPTO, 0 }, | |
24 | + /* | |
25 | + ** .pp | |
26 | + ** Controls where recipients from ``To:'' list go on group-reply. If \fIset\fP | |
27 | + ** they are copied to ``To:'' otherwise to ``Cc:''. | |
28 | + */ | |
8d013520 | 29 | { "mail_check", DT_NUM, R_NONE, {.p=&BuffyTimeout}, {.l=5} }, |
ffc6f62d JP |
30 | /* |
31 | ** .pp | |
8d013520 PZ |
32 | --- mutt-2.0.6/mutt.h.orig 2021-04-07 17:47:28.950795784 +0000 |
33 | +++ mutt-2.0.6/mutt.h 2021-04-07 17:50:34.977465090 +0000 | |
34 | @@ -479,6 +479,7 @@ | |
35 | OPTINCLUDEENCRYPTED, | |
ffc6f62d JP |
36 | OPTINCLUDEONLYFIRST, |
37 | OPTKEEPFLAGGED, | |
38 | + OPTKEEPTO, | |
18723767 | 39 | OPTLOCALDATEHEADER, |
8d013520 | 40 | OPTMUTTLISPINLINEEVAL, |
ffc6f62d | 41 | OPTMAILCAPSANITIZE, |