]> Sergey Matveev's repositories - public-inbox.git/commit
lei_to_mail+mbox_reader: fix handling of empty/bogus emails
authorEric Wong <e@80x24.org>
Sat, 4 Sep 2021 21:36:58 +0000 (21:36 +0000)
committerEric Wong <e@80x24.org>
Sat, 4 Sep 2021 23:33:06 +0000 (23:33 +0000)
commit09acfa0ba87514dac4802ca88b3c95bb53d15c04
tree60c117b099564f06b54db089d698abbdc4aa6c41
parent42420897bd81bf5664d5a93c5069dda4cb0459f1
lei_to_mail+mbox_reader: fix handling of empty/bogus emails

We may be handling invalid mboxes, so just return no objects in
that case.  While "lei q" on HTTP(S) externals expects a gzipped
mboxrd, there's always a chance something else gzipped can be
sent to us.

There's also changes to lei_to_mail to better handle emails
which lack a body and/or headers (e.g. t/solve/bare.patch)

Link: https://public-inbox.org/meta/20210903151500.h72mzcpqixgtytjs@meerkat.local/
lib/PublicInbox/Eml.pm
lib/PublicInbox/LeiToMail.pm
lib/PublicInbox/MboxReader.pm
t/mbox_reader.t