]> Sergey Matveev's repositories - public-inbox.git/commit
smsg: use capitalization for header retrieval
authorEric Wong <e@yhbt.net>
Thu, 7 May 2020 21:05:47 +0000 (21:05 +0000)
committerEric Wong <e@yhbt.net>
Sat, 9 May 2020 08:59:10 +0000 (08:59 +0000)
commit93e3d34ff8d5f981fe4bdd4a6cddb96af6785008
tree632d889e2e917e75ea4f8f55bec084d1b0c8aede
parenta6814118856da197b909d68721d461a3936a085b
smsg: use capitalization for header retrieval

PublicInbox::Eml will have case-sensitive memoization to
avoid the need to call `lc' to retrieve common headers,
so ensure we call $mime->header() with the common
capitalization.

Unfortunately, we need to continue using lowercase for field
names for smsg, since NNTP requires case-insensitivity when
matching headers and method dispatch is expensive.
lib/PublicInbox/Smsg.pm