X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Fmime.c;h=43ccfd3831b58dfe6475ef7ac036da9dfc9e59e2;hp=9abea0b29fbb2c1ac5dd32663e00041ab8655512;hb=688ac22f746f785c27ac99ac86aa85a3035a3638;hpb=1d0ce70b85c36973b50e5783fe7b72941c81c0a9 diff --git a/lib-mime/mime.c b/lib-mime/mime.c index 9abea0b..43ccfd3 100644 --- a/lib-mime/mime.c +++ b/lib-mime/mime.c @@ -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;