]> Sergey Matveev's repositories - public-inbox.git/commit
view: handle missing Content-Type in message
authorEric Wong <e@80x24.org>
Thu, 8 Sep 2016 19:44:16 +0000 (19:44 +0000)
committerEric Wong <e@80x24.org>
Thu, 8 Sep 2016 19:44:16 +0000 (19:44 +0000)
commit33d98667aef95cdf2511f5179263e894c19a211c
tree674ea077ed46f4c5fe408e63531365cb227633f3
parent36093117ac95714fc0ca3950d8d99de63ad6814f
view: handle missing Content-Type in message

Email::MIME internally assumes "text/plain" for messages
missing a Content-Type, but does not expose that in the
Email::MIME::content_type API method.  We must assume it
ourselves to avoid uninitialized value warnings for the
rare (nowadays) MUAs which do not set it.
lib/PublicInbox/View.pm