DISPFORMDATA
};
-typedef struct parameter {
- char *attribute;
- char *value;
- struct parameter *next;
-} PARAMETER;
+/****************************************************************************/
+/* rfc822 addresses */
+/****************************************************************************/
typedef struct address_t {
char *personal; /* real name of address */
struct address_t *next;
} address_t;
+DO_INIT(address_t, address);
+void address_wipe(address_t *);
+
+DO_NEW(address_t, address);
+DO_DELETE(address_t, address);
+DO_SLIST(address_t, address);
+
+
+/****************************************************************************/
+/* rfc822 header parameters */
+/****************************************************************************/
+
+typedef struct parameter {
+ char *attribute;
+ char *value;
+ struct parameter *next;
+} PARAMETER;
+
+DO_INIT(PARAMETER, parameter);
+void parameter_wipe(PARAMETER *);
+
+DO_NEW(PARAMETER, parameter);
+DO_DELETE(PARAMETER, parameter);
+DO_SLIST(PARAMETER, parameter);
+
+
+/****************************************************************************/
+/* rfc822 envelopes */
+/****************************************************************************/
+
typedef struct envelope_t {
address_t *return_path;
address_t *from;
unsigned int refs_changed:1; /* References changed to break thread */
} ENVELOPE;
+DO_INIT(ENVELOPE, envelope);
+void envelope_wipe(ENVELOPE*);
+
+DO_NEW(ENVELOPE, envelope);
+DO_DELETE(ENVELOPE, envelope);
+
+/****************************************************************************/
+/* rfc822 content-* */
+/****************************************************************************/
+
/* Information that helps in determing the Content-* of an attachment */
typedef struct content {
long hibin; /* 8-bit characters */
unsigned int cr:1; /* has CR, even when in a CRLF pair */
} CONTENT;
+
+/****************************************************************************/
+/* rfc822 Bodies */
+/****************************************************************************/
+
typedef struct body {
char *xtype; /* content-type if x-unknown */
char *subtype; /* content-type subtype */
unsigned int collapsed:1; /* used by recvattach */
unsigned int attach_qualifies:1;
-
} BODY;
+
+/****************************************************************************/
+/* rfc822 Headers */
+/****************************************************************************/
+
typedef struct header {
unsigned int security:11; /* bit 0-6: flags, bit 7,8: application.
see: crypt.h pgplib.h, smime.h */
char *maildir_flags; /* unknown maildir flags */
} HEADER;
-DO_INIT(address_t, address);
-void address_wipe(address_t *);
-
-DO_NEW(address_t, address);
-DO_DELETE(address_t, address);
-DO_SLIST(address_t, address);
+DO_INIT(HEADER, header);
+void header_wipe(HEADER *);
+DO_NEW(HEADER, header);
+DO_DELETE(HEADER, header);
#endif /* MUTT_LIB_MIME_MIME_TYPES_H */