simplify alias expansion a lot.
[apps/madmutt.git] / lib-mime / mime.h
index 91195cc..f8e6fe8 100644 (file)
@@ -34,6 +34,7 @@
 #include <stdio.h>
 
 #include "mime-types.h"
+#include "mime-token.h"
 
 extern const char MimeSpecials[];
 extern const char *BodyTypes[];
@@ -43,11 +44,15 @@ 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)]
 
+int url_parse_mailto(ENVELOPE *e, char **body, const char *src);
+
 /****************************************************************************/
 /* RFC 822                                                                  */
 /*                Standard for ARPA Internet Text Messages                  */
@@ -63,12 +68,17 @@ void mutt_parse_content_type(char *, BODY *);
 BODY *mutt_read_mime_header (FILE *, int);
 void mutt_parse_part(FILE *, BODY *);
 BODY *mutt_parse_messageRFC822(FILE *, BODY *);
-BODY *mutt_parse_multipart (FILE *, const char *, off_t, int);
+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 ***/
 
-address_t *address_dup(address_t *addr);
-address_t *address_list_dup(address_t *addr);
+address_t *mutt_parse_adrlist(address_t *, const char *);
+address_t *address_dup(const address_t *addr);
+address_t *address_list_dup(const address_t *addr);
 void rfc822_qualify(address_t *, const char *);
 
 address_t *rfc822_parse_adrlist(address_t *, const char *s);