]> granicus.if.org Git - neomutt/commitdiff
Add Cc, In-Reply-To, and References to default mailto_allow
authorJulian Andres Klode <jak@jak-linux.org>
Sun, 25 Jun 2017 09:15:54 +0000 (11:15 +0200)
committerRichard Russon <rich@flatcap.org>
Sun, 25 Jun 2017 12:41:12 +0000 (13:41 +0100)
These headers are quite useful for replying to mailing lists
via mailto links, as they don't break threading.

Debian has been shipping these in the /etc/Muttrc file since
September 2016 without much issues.

Fixes #115

doc/manual.xml.head
doc/muttrc.man.head
init.c

index 80cb98d1e0df8c874e0937f2fc86e3be4d420522..befa6ce5bfa52395fe4e4862ce3c9d723a76002e 100644 (file)
@@ -5869,7 +5869,10 @@ mailboxes $my_mx +mailbox3</screen>
       <literal>Subject</literal> and
       <literal>Body</literal> header fields, which are the only requirement
       specified by the
-      <literal>mailto:</literal>specification in RFC2368.</para>
+      <literal>mailto:</literal>specification in RFC2368, and
+      the <literal>Cc</literal>, <literal>In-Reply-To</literal>,
+      <literal>References</literal> headers to aid with replies to
+      mailing lists.</para>
     </sect1>
   </chapter>
 
index e7fbae6b62f616120f722d6e76c591d689a18660..1cd2fafa33669479844a04e8ffe1ea52c2c9519d 100644 (file)
@@ -453,8 +453,10 @@ can be any of the \fB-hook\fP commands documented above.
 .IP
 These commands allow the user to modify the list of allowed header
 fields in a \fImailto:\fP URL that Mutt will include in the
-the generated message.  By default the list contains only
-\fBsubject\fP and \fBbody\fP, as specified by RFC2368.
+the generated message.  By default the list contains
+\fBsubject\fP and \fBbody\fP, as specified by RFC2368; and
+\fBcc\fP, \fBin-reply-to\fP, and \fBreferences\fP to aid with
+mailto links from mailing lists.
 .SH PATTERNS
 .PP
 In various places with mutt, including some of the above mentioned
diff --git a/init.c b/init.c
index 54c34aa019c754bae8cf2788fcdf35e7666fb38c..293f2746c45ef6fc23d8c748956e92ac3dd5fa3c 100644 (file)
--- a/init.c
+++ b/init.c
@@ -4161,6 +4161,11 @@ void mutt_init(int skip_sys_rc, struct List *commands)
    */
   add_to_list(&MailtoAllow, "body");
   add_to_list(&MailtoAllow, "subject");
+  /* Cc, In-Reply-To, and References help with not breaking threading on
+   * mailing lists, see https://github.com/neomutt/neomutt/issues/115 */
+  add_to_list(&MailtoAllow, "cc");
+  add_to_list(&MailtoAllow, "in-reply-to");
+  add_to_list(&MailtoAllow, "references");
 
   if (!Muttrc)
   {