]> Sergey Matveev's repositories - public-inbox.git/commit
filter/vger: kill trailing newlines aggressively
authorEric Wong <e@80x24.org>
Fri, 12 Feb 2021 07:05:50 +0000 (00:05 -0700)
committerEric Wong <e@80x24.org>
Sat, 13 Feb 2021 02:58:29 +0000 (22:58 -0400)
commitbab0a3dfd9e3bd58abf60531096b780673f8e6c7
tree9ec7be2115457d300ec7e85a85cb080be15ca56d
parentbbeccd3d252c926e649b946a8a46dd14e6e92182
filter/vger: kill trailing newlines aggressively

PublicInbox::MboxReader->(mboxrd|mboxo) only deletes the last
trailing newline, not every single trailing newline like
InboxWritable->import_mbox does.

Testing PublicInbox::MboxReader->mboxrd (next commit) with
scripts/import_vger_from_mbox on the LKML archive I got 2018 for
v2 development; this difference was responsible for a single
spam message(*) from out of 2722831 not being filtered correctly
and returning a different result.

(*) dated 2014-08-25
lib/PublicInbox/Filter/Vger.pm