GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 36a704cf authored by Kevin J. McCarthy's avatar Kevin J. McCarthy
Browse files

Add cc, in-reply-to, and references to default mailto_allow list.

Thanks to Gregory Anders for the ticket and suggested patch, which
this commit is based upon.
parent 0684a051
Pipeline #288022602 passed with stages
in 4 minutes and 5 seconds
......@@ -5494,9 +5494,12 @@ The <literal>mailto_allow</literal> and <literal>unmailto_allow</literal>
commands allow the user to modify the list of approved headers.
</para>
<para>
Mutt initializes the default list to contain only the <literal>Subject</literal>
and <literal>Body</literal> header fields, which are the only requirement specified
by the <literal>mailto:</literal> specification in RFC2368.
Mutt initializes the default list to contain the
<literal>Subject</literal> and <literal>Body</literal> header fields,
which are the only requirement specified by the
<literal>mailto:</literal> specification in RFC2368, along with
<literal>Cc</literal>, <literal>In-Reply-To</literal>, and
<literal>References</literal>, to support mailing list URLs.
</para>
</sect1>
......@@ -11017,10 +11020,13 @@ on screen carefully enough.
<para>
To prevent these issues, Mutt by default only accepts the
<literal>Subject</literal> and <literal>Body</literal> headers.
Allowed headers can be adjusted with the
<link linkend="mailto-allow"><command>mailto_allow</command></link> and
<link linkend="mailto-allow"><command>unmailto_allow</command></link> commands.
<literal>Subject</literal>, <literal>Body</literal>,
<literal>Cc</literal>, <literal>In-Reply-To</literal>, and
<literal>References</literal> headers. Allowed headers can be
adjusted with the <link
linkend="mailto-allow"><command>mailto_allow</command></link> and
<link linkend="mailto-allow"><command>unmailto_allow</command></link>
commands.
</para>
</sect2>
......
......@@ -3816,6 +3816,13 @@ void mutt_init (int skip_sys_rc, LIST *commands)
add_to_list(&MailtoAllow, "body");
add_to_list(&MailtoAllow, "subject");
/* Allow a few other commonly used headers for mailing list
* software, and platforms such as Sourcehut.
*/
add_to_list(&MailtoAllow, "cc");
add_to_list(&MailtoAllow, "in-reply-to");
add_to_list(&MailtoAllow, "references");
if (!Muttrc)
{
const char *xdg_cfg_home = getenv ("XDG_CONFIG_HOME");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment