ENCQUOTEDPRINTABLE,
ENCBASE64,
ENCBINARY,
- ENCUUENCODED
+ ENCUUENCODED,
};
/* Content-Disposition values */
} address_t;
DO_INIT(address_t, address);
-void address_wipe(address_t *);
+static inline void address_wipe(address_t *addr) {
+ p_delete(&addr->personal);
+ p_delete(&addr->mailbox);
+}
DO_NEW(address_t, address);
DO_DELETE(address_t, address);
-DO_SLIST(address_t, address);
-
+DO_SLIST(address_t, address, address_delete);
/****************************************************************************/
/* rfc822 header parameters */
} PARAMETER;
DO_INIT(PARAMETER, parameter);
-void parameter_wipe(PARAMETER *);
+static inline void parameter_wipe(PARAMETER *param) {
+ p_delete(¶m->attribute);
+ p_delete(¶m->value);
+}
DO_NEW(PARAMETER, parameter);
DO_DELETE(PARAMETER, parameter);
-DO_SLIST(PARAMETER, parameter);
+DO_SLIST(PARAMETER, parameter, parameter_delete);
/****************************************************************************/
char *x_comment_to;
#endif
BUFFER *spam;
- LIST *references; /* message references (in reverse order) */
- LIST *in_reply_to; /* in-reply-to header content */
- LIST *userhdrs; /* user defined headers */
+ string_list_t *references; /* message references (in reverse order) */
+ string_list_t *in_reply_to; /* in-reply-to header content */
+ string_list_t *userhdrs; /* user defined headers */
unsigned int irt_changed:1; /* In-Reply-To changed to link/break threads */
unsigned int refs_changed:1; /* References changed to break thread */
} ENVELOPE;
short attach_total;
#ifdef MIXMASTER
- LIST *chain;
+ string_list_t *chain;
#endif
int refno; /* message number on server */