]> git.pld-linux.org Git - packages/mutt.git/blob - mutt-keep_to.patch
f99fd29bb31f8bbf2b4cd89ea69309000447ed4b
[packages/mutt.git] / mutt-keep_to.patch
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
8 @@ -672,7 +672,7 @@
9          (!in->mail_followup_to || hmfupto != MUTT_YES))
10      {
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);
17 diff -ur mutt-1.5.23.orig/init.h mutt-1.5.23/init.h
18 --- mutt-1.5.23.orig/init.h     2014-10-12 17:17:05.716118306 +0200
19 +++ mutt-1.5.23/init.h  2014-10-12 17:24:08.119438749 +0200
20 @@ -1344,6 +1344,12 @@
21    ** from your spool mailbox to your $$mbox mailbox, or as a result of
22    ** a ``$mbox-hook'' command.
23    */
24 +  { "keep_to", DT_BOOL, R_NONE, OPTKEEPTO, 0 },
25 +  /*
26 +  ** .pp
27 +  ** Controls where recipients from ``To:'' list go on group-reply. If \fIset\fP
28 +  ** they are copied to ``To:'' otherwise to ``Cc:''.
29 +  */
30    { "mail_check",      DT_NUM,  R_NONE, UL &BuffyTimeout, 5 },
31    /*
32    ** .pp
33 diff -ur mutt-1.5.23.orig/mutt.h mutt-1.5.23/mutt.h
34 --- mutt-1.5.23.orig/mutt.h     2014-10-12 17:17:05.722784972 +0200
35 +++ mutt-1.5.23/mutt.h  2014-10-12 17:24:50.006104137 +0200
36 @@ -391,6 +391,7 @@
37    OPTIMPLICITAUTOVIEW,
38    OPTINCLUDEONLYFIRST,
39    OPTKEEPFLAGGED,
40 +  OPTKEEPTO,
41    OPTMAILCAPSANITIZE,
42    OPTMAILCHECKRECENT,
43    OPTMAILDIRTRASH,
This page took 0.01828 seconds and 2 git commands to generate.