X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Fmime.h;h=4e678e4dd64d4c08731d88cbe1b4b4fa147aaa10;hp=8c0d3b89482f1250a594fcc6ed161b9278f72da2;hb=05a3bbbe420e4afc76e0eea24ce32f859405dc4a;hpb=3a3420a4cb3369d51eecc9287d556596f98e7314;ds=sidebyside diff --git a/lib-mime/mime.h b/lib-mime/mime.h index 8c0d3b8..4e678e4 100644 --- a/lib-mime/mime.h +++ b/lib-mime/mime.h @@ -45,8 +45,9 @@ extern const char *BodyEncodings[]; #define is_multipart(x) \ ((x)->type == TYPEMULTIPART \ || ((x)->type == TYPEMESSAGE && \ - (!mime_which_token((x)->subtype, -1) == MIME_RFC822) \ - || !mime_which_token((x)->subtype, -1) == MIME_NEWS)) + ((!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)] @@ -68,8 +69,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 ***/