X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Fmime.h;h=30e54533b522ec2b0f8df3ef8efed58b2efea7e9;hp=b235acc7cbeac75df674ff8ac04ebe2a6e9a3b05;hb=197d39c13fb4cc5e316ecf5b2dcf981d7d71c512;hpb=cb4704c68992fe6e12cd153a693508b04bc7a470 diff --git a/lib-mime/mime.h b/lib-mime/mime.h index b235acc..30e5453 100644 --- a/lib-mime/mime.h +++ b/lib-mime/mime.h @@ -34,6 +34,7 @@ #include #include "mime-types.h" +#include "mime-token.h" extern const char MimeSpecials[]; extern const char *BodyTypes[]; @@ -43,8 +44,9 @@ extern const char *BodyEncodings[]; #define is_multipart(x) \ ((x)->type == TYPEMULTIPART \ - || ((x)->type == TYPEMESSAGE && (!strcasecmp((x)->subtype, "rfc822") \ - || !strcasecmp((x)->subtype, "news")))) + || ((x)->type == TYPEMESSAGE && \ + (!mime_which_token((x)->subtype, -1) == MIME_RFC822) \ + || !mime_which_token((x)->subtype, -1) == MIME_NEWS)) #define TYPE(X) ((X->type == TYPEOTHER) && (X->xtype != NULL) ? X->xtype : BodyTypes[(X->type)]) #define ENCODING(X) BodyEncodings[(X)] @@ -66,8 +68,8 @@ BODY *mutt_parse_messageRFC822(FILE *, BODY *); BODY *mutt_parse_multipart(FILE *, const char *, off_t, int); LIST **mutt_parse_rfc822_line(ENVELOPE *, HEADER *, char *line, char *p, short weed, short do_2047, LIST **); - ENVELOPE *mutt_read_rfc822_header(FILE *, HEADER *, short, short); +int mutt_count_body_parts (HEADER *hdr, int flags); /*** addresses ***/