]> Sergey Matveev's repositories - public-inbox.git/commit
searchidxshard: allow msgref to be undef
authorEric Wong <e@80x24.org>
Tue, 27 Oct 2020 07:54:12 +0000 (07:54 +0000)
committerEric Wong <e@80x24.org>
Sat, 7 Nov 2020 10:18:40 +0000 (10:18 +0000)
commitff760861406b8e6319d0229f743e44283e925296
tree01d2379d6fb48737fa2c115ed83a27bf4805fa34
parent71b32a3eb1419d8391b5e7e4bae4046d879f91e4
searchidxshard: allow msgref to be undef

We don't need to keep it in code paths which are guaranteed to
only see PublicInbox::Eml (and not Email::MIME or PublicInbox::MIME
which did not round-trip properly).  However, we must set
{raw_bytes} since PublicInbox::Eml may add an extra "\n" for
rare messages with no bodies.
lib/PublicInbox/SearchIdxShard.pm