X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Fmime-types.h;h=c57c90e3d8e84e7613a0901b5b45b9a4353501a6;hp=03d654a4209698b213b3792800a2ebe6d5cec577;hb=e0571c496935f226abe4a22921b5b4e10d1481e8;hpb=69f4685e616347559d4ec714fd826d7f97a472ef diff --git a/lib-mime/mime-types.h b/lib-mime/mime-types.h index 03d654a..c57c90e 100644 --- a/lib-mime/mime-types.h +++ b/lib-mime/mime-types.h @@ -30,13 +30,7 @@ #ifndef MUTT_LIB_MIME_MIME_TYPES_H #define MUTT_LIB_MIME_MIME_TYPES_H -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include +#include /* Content-Type */ enum { @@ -143,7 +137,6 @@ typedef struct envelope_t { char *newsgroups; char *xref; char *followup_to; - char *x_comment_to; #endif BUFFER *spam; string_list_t *references; /* message references (in reverse order) */ @@ -183,6 +176,8 @@ typedef struct content { /****************************************************************************/ typedef struct body { + struct body *next; /* next attachment in the list */ + char *xtype; /* content-type if x-unknown */ char *subtype; /* content-type subtype */ parameter_t *parameter; /* parameters of the content-type */ @@ -209,7 +204,6 @@ typedef struct body { * to determine what content-transfer-encoding * is required when sending mail. */ - struct body *next; /* next attachment in the list */ struct body *parts; /* parts of a multipart or message/rfc822 */ struct header *hdr; /* header information for message/rfc822 */ @@ -253,6 +247,17 @@ typedef struct body { unsigned int attach_qualifies:1; } BODY; +static inline BODY *body_init(BODY *b) { + b->disposition = DISPATTACH; + b->use_disp = 1; + return b; +} +void body_wipe(BODY *); + +DO_NEW(BODY, body); +DO_DELETE(BODY, body); +DO_SLIST(BODY, body, body_delete); + /****************************************************************************/ /* rfc822 Headers */ @@ -326,10 +331,6 @@ see: crypt.h pgplib.h, smime.h */ short attach_total; -#ifdef MIXMASTER - string_list_t *chain; -#endif - int refno; /* message number on server */ void *data; /* driver-specific data */