diff options
author | Eric Wong <e@80x24.org> | 2022-11-24 21:31:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-11-26 08:09:58 +0000 |
commit | 5198c976ce8b1954f0f76a0da152cc434411f147 (patch) | |
tree | 4ebf02230520d7526a14f194e50793ff07d3e32e /lib/PublicInbox/SaPlugin/ListMirror.pm | |
parent | 2bd8f48268ac24a4d3cac326a89099639ae1d170 (diff) | |
download | public-inbox-5198c976ce8b1954f0f76a0da152cc434411f147.tar.gz |
This fixes the display of raw (non-RFC 2047) names and subjects in HTML message views. SMTPUTF8 (RFC 6531) allows raw UTF-8 in headers without RFC 2047 encoding, so let Perl handle it as a character sequence for the rest of our consumers. Thus, the old special case in PublicInbox::Smsg->populate is no longer necessary and gone. The one regression notice so far (and fixed here) is compressed IMAP envelope responses still needs raw bytes since the zlib wrapper is designed for octets, not Perl UTF-8 chars. Thus we reverse utf8::decode with utf8::encode in PublicInbox::IMAP::_esc. ->header_set also forces encoding to bytes, since all existing callers would either be dealing with ->header_raw results or be RFC-2047-encoded anyways. Reindexing is not necessary with this change due to the prior PublicInbox::Smsg->populate special case. Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> Link: https://public-inbox.org/meta/20221124153715.3nenjpjzj43vqxr2@meerkat.local/
Diffstat (limited to 'lib/PublicInbox/SaPlugin/ListMirror.pm')
0 files changed, 0 insertions, 0 deletions