#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)]
+int url_parse_mailto(ENVELOPE *e, char **body, const char *src);
+
/****************************************************************************/
/* RFC 822 */
/* Standard for ARPA Internet Text Messages */
/*** addresses ***/
-address_t *mutt_parse_adrlist (address_t *, const char *);
-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);