]> Sergey Matveev's repositories - public-inbox.git/commit
view: simplify _parent_headers
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 08:17:02 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 19:50:32 +0000 (19:50 +0000)
commit404fb35c07290ac4f5f618bac6626573c79ddc50
treecc1c1c6649cbfdc4fb2a6baf54ec22a1723276e4
parentde954cac909d1ec0702a5ba2b0eb1823f999043d
view: simplify _parent_headers

Having References but lacking In-Reply-To is an uncommon case
with email, nowadays.  So just rely on ->linkify_mids to handle
linkification and HTML escaping  Furthermore, headers are short
enough to return as-is (and rely on CoW improvements in Perl
5.1x) since linkify_mids needs to operate on an independent
string, anyways.
lib/PublicInbox/View.pm