From: Ken Hornstein Date: Fri, 16 May 2014 17:02:43 +0000 (-0400) Subject: Handle unknown message types in the generic content handler rather X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2ca027a15f209e2a73b8c7da9115167f2dc8f8a2?ds=inline;hp=b67c1d7c42331f0abd85439caa3d5b9a09e7a999 Handle unknown message types in the generic content handler rather than in the RFC822 handler; this will cause them to be displayed using an output marker rather than throw an error. --- diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 36b41405..1f3b6f16 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -258,8 +258,15 @@ show_switch (CT ct, int alternate, int concatsw, int textonly, int inlineonly, inlineonly, fmt); case MESSAGE_RFC822: - default: return show_message_rfc822 (ct, alternate, fmt); + + /* + * Treat unknown message types as equivalent to + * application/octet-stream for now + */ + default: + return show_content (ct, alternate, textonly, + inlineonly, fmt); } case CT_TEXT: