X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mime%2Fmime.c;h=3a8a9ede50589c175fa4ce9c4b9e7b1a939b6369;hb=b241f87351127948f83842d537c1a76536bf61c1;hp=fdb29356d7428175bcb5f84b2f9583d46cd58f04;hpb=3e9a92ab72e04aecb0fc4098098a1b57c5101d84;p=apps%2Fmadmutt.git diff --git a/lib-mime/mime.c b/lib-mime/mime.c index fdb2935..3a8a9ed 100644 --- a/lib-mime/mime.c +++ b/lib-mime/mime.c @@ -48,30 +48,28 @@ const char *BodyEncodings[] = { "x-uuencoded", }; -void address_wipe(address_t *addr) +void rfc1524_entry_wipe(rfc1524_entry *p) { - p_delete(&addr->personal); - p_delete(&addr->mailbox); - address_delete(&addr->next); -} - -void parameter_wipe(PARAMETER *param) -{ - p_delete(¶m->attribute); - p_delete(¶m->value); - parameter_delete(¶m->next); + p_delete(&p->command); + p_delete(&p->testcommand); + p_delete(&p->composecommand); + p_delete(&p->composetypecommand); + p_delete(&p->editcommand); + p_delete(&p->printcommand); + p_delete(&p->nametemplate); + p_delete(&p->convert); } void envelope_wipe(ENVELOPE *p) { - address_delete(&p->return_path); - address_delete(&p->from); - address_delete(&p->to); - address_delete(&p->cc); - address_delete(&p->bcc); - address_delete(&p->sender); - address_delete(&p->reply_to); - address_delete(&p->mail_followup_to); + address_list_wipe(&p->return_path); + address_list_wipe(&p->from); + address_list_wipe(&p->to); + address_list_wipe(&p->cc); + address_list_wipe(&p->bcc); + address_list_wipe(&p->sender); + address_list_wipe(&p->reply_to); + address_list_wipe(&p->mail_followup_to); p_delete(&p->list_post); p_delete(&p->subject); @@ -89,9 +87,9 @@ void envelope_wipe(ENVELOPE *p) #endif mutt_buffer_free (&p->spam); - mutt_free_list(&p->references); - mutt_free_list(&p->in_reply_to); - mutt_free_list(&p->userhdrs); + string_list_wipe(&p->references); + string_list_wipe(&p->in_reply_to); + string_list_wipe(&p->userhdrs); } void header_wipe(HEADER *h) @@ -102,7 +100,7 @@ void header_wipe(HEADER *h) p_delete(&h->tree); p_delete(&h->path); #ifdef MIXMASTER - mutt_free_list(&h->chain); + string_list_wipe(&h->chain); #endif p_delete(&h->data); } @@ -117,7 +115,7 @@ int url_parse_mailto(ENVELOPE *e, char **body, const char *src) int taglen; - LIST **last = &e->userhdrs; + string_list_t **last = &e->userhdrs; if (!(t = strchr (src, ':'))) return -1;