]> Sergey Matveev's repositories - public-inbox.git/commit
view: try to display bogus charsets for text/plain
authorEric Wong <e@80x24.org>
Thu, 18 Aug 2016 00:54:25 +0000 (00:54 +0000)
committerEric Wong <e@80x24.org>
Thu, 18 Aug 2016 01:32:00 +0000 (01:32 +0000)
commit98bd8519675595f6697185a9bd5ee06669bd50be
tree01c87e06d6a0b062ec19ec485824f6d2e8259911
parent22e7f3ad672473f19ae5107602e57e9361b8b7f2
view: try to display bogus charsets for text/plain

Alpine seems to set charset=X-UNKNOWN for valid UTF-8 text,
which causes Email::MIME::body_str to fail as X-UNKNOWN
is not a valid encoding.  So, blindly display the body
as plain-text but warn users about possibly mangled text.

Reported-by: Thomas Ferris Nicolaisen <tfnico@gmail.com>
lib/PublicInbox/View.pm