X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Fmime.c;h=43ccfd3831b58dfe6475ef7ac036da9dfc9e59e2;hp=dc50d2d6a7128980773ac3e90742e8fb9c5f42d2;hb=34a7c5a388523a65f55d6d50213bd4b735cfb25b;hpb=230399f9632c37b66c1c117a17e8327eae6b3235 diff --git a/lib-mime/mime.c b/lib-mime/mime.c index dc50d2d..43ccfd3 100644 --- a/lib-mime/mime.c +++ b/lib-mime/mime.c @@ -201,9 +201,7 @@ void header_wipe(HEADER *h) p_delete(&h->maildir_flags); p_delete(&h->tree); p_delete(&h->path); -#ifdef MIXMASTER string_list_wipe(&h->chain); -#endif p_delete(&h->data); } @@ -212,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;