]> Sergey Matveev's repositories - public-inbox.git/commit
msg_part_text: discover text in application/octet-stream
authorEric Wong <e@80x24.org>
Thu, 11 Mar 2021 01:45:39 +0000 (19:45 -0600)
committerEric Wong <e@80x24.org>
Fri, 12 Mar 2021 02:18:15 +0000 (02:18 +0000)
commit0ec3ddaeea0e3eac3f4e686cd4383840414fbc4d
tree62872151aa17cecbbc1f055f907678d625e209b4
parent7534692cd42797deeb9142598e031ca3184951cf
msg_part_text: discover text in application/octet-stream

Some poorly-configured MUAs will send application/octet-stream
even for text-only attachments.  We can't make expect all MUAs
are configured with proper MIME types, and there is plenty of
historical mail that falls into this unfortunate criteria.

v2: simplify the check and ensures returned text is Perl "utf8"
MANIFEST
lib/PublicInbox/MsgIter.pm
t/msg_iter.t
xt/eml_octet-stream.t [new file with mode: 0644]