]> git.pld-linux.org Git - packages/mutt.git/blame - mutt-keep_to.patch
- cd.purge_message, cd.trash_folder, gpgme, imap_fast_trash,
[packages/mutt.git] / mutt-keep_to.patch
CommitLineData
ffc6f62d
JP
1Add keep_to option to control where To: recipients are copied on group-reply (To: or Cc:).
2
3author: Jan Palus
4
5diff -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@@ -557,7 +557,11 @@
9 if ((flags & SENDGROUPREPLY) && (!in->mail_followup_to || hmfupto != M_YES))
10 {
11 /* if(!mutt_addr_is_user(in->to)) */
12- rfc822_append (&out->cc, in->to, 1);
13+ if (option (OPTKEEPTO)) {
14+ rfc822_append (&out->to, in->to, 1);
15+ } else {
16+ rfc822_append (&out->cc, in->to, 1);
17+ }
18 rfc822_append (&out->cc, in->cc, 1);
19 }
20 }
21diff -ur mutt-1.5.23.orig/init.h mutt-1.5.23/init.h
22--- mutt-1.5.23.orig/init.h 2014-10-12 17:17:05.716118306 +0200
23+++ mutt-1.5.23/init.h 2014-10-12 17:24:08.119438749 +0200
24@@ -1344,6 +1344,12 @@
25 ** from your spool mailbox to your $$mbox mailbox, or as a result of
26 ** a ``$mbox-hook'' command.
27 */
28+ { "keep_to", DT_BOOL, R_NONE, OPTKEEPTO, 0 },
29+ /*
30+ ** .pp
31+ ** Controls where recipients from ``To:'' list go on group-reply. If \fIset\fP
32+ ** they are copied to ``To:'' otherwise to ``Cc:''.
33+ */
b324a978 34 { "mail_check", DT_NUM, R_NONE, UL &BuffyTimeout, 5 },
ffc6f62d
JP
35 /*
36 ** .pp
37diff -ur mutt-1.5.23.orig/mutt.h mutt-1.5.23/mutt.h
38--- mutt-1.5.23.orig/mutt.h 2014-10-12 17:17:05.722784972 +0200
39+++ mutt-1.5.23/mutt.h 2014-10-12 17:24:50.006104137 +0200
40@@ -391,6 +391,7 @@
41 OPTIMPLICITAUTOVIEW,
42 OPTINCLUDEONLYFIRST,
43 OPTKEEPFLAGGED,
44+ OPTKEEPTO,
45 OPTMAILCAPSANITIZE,
46 OPTMAILCHECKRECENT,
47 OPTMAILDIRTRASH,
This page took 0.038786 seconds and 4 git commands to generate.