]> Sergey Matveev's repositories - public-inbox.git/commit
mbox_reader: do not chomp non-blank EOL
authorEric Wong <e@80x24.org>
Fri, 12 Feb 2021 07:05:52 +0000 (00:05 -0700)
committerEric Wong <e@80x24.org>
Sat, 13 Feb 2021 02:58:31 +0000 (22:58 -0400)
commit376778b910cdf787d6e08cfd11acab26118899f4
treefac5cc3de7cefa9629510917ca98bc4d9ac40758
parent1138a7a940ec40ad4394aa55413456a6f6fd341e
mbox_reader: do not chomp non-blank EOL

It's conceivable some cases won't generate an empty line before
an mboxrd or mboxo From_ line.  Ensure we can handle that case
and don't leave the Eml->{bdy} without a trailing LF character.

And drop an unnecessary alarm import while we're in the area.
lib/PublicInbox/MboxReader.pm
t/mbox_reader.t