From 2ca027a15f209e2a73b8c7da9115167f2dc8f8a2 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Fri, 16 May 2014 13:02:43 -0400 Subject: [PATCH] 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. --- uip/mhshowsbr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: -- 2.56.0