fix the real bug, that was hidden in the .h
[apps/madmutt.git] / lib-mime / mime.c
index 9abea0b..43ccfd3 100644 (file)
@@ -210,6 +210,17 @@ void header_wipe(HEADER *h)
 /* misc functions                                                           */
 /****************************************************************************/
 
+int mutt_is_message_type(BODY *b)
+{
+    int tok;
+
+    if (b->type != TYPEMESSAGE)
+        return 0;
+
+    tok = mime_which_token(b->subtype, -1);
+    return tok == MIME_RFC822 || tok == MIME_NEWS;
+}
+
 int mutt_is_text_part(BODY * b)
 {
     char *s = b->subtype;