]> granicus.if.org Git - neomutt/commit
RFC2047-decode mailto url headers after RFC2822 parsing. (closes #3879)
authorKevin McCarthy <kevin@8t8.us>
Sat, 1 Oct 2016 20:58:35 +0000 (13:58 -0700)
committerRichard Russon <rich@flatcap.org>
Sun, 2 Oct 2016 14:53:42 +0000 (15:53 +0100)
commit50f21294e2b0ff700ad9ab2399eb8fa00e1c844a
tree222f911e81e6a044fa5a819e78e798a855b8a00b
parent8fbd61a8de32de265d3dcb1468159065dfaaf0e2
RFC2047-decode mailto url headers after RFC2822 parsing. (closes #3879)

Commit 55819a7e6169 performed the RFC2047 decode before the parsing.
This works okay for headers such as subject, but for others such as
address fields could lead to parsing errors.

Change to perform a decode on envelope headers after all the calls to
mutt_parse_rfc822_line(), using the same list of fields as
mutt_read_rfc822_header().

Change the do_2047 parameter of mutt_read_rfc822_line() to true, so
that user headers are decoded if needed.
url.c