X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc822parse.c;h=65b03b4f8dfcc74013fc95809e7fb065e943d607;hp=31b5d88ff3879920da7f56c6ccdbb2c7ec71d96c;hb=a0aa4a45870f1607e8b41760866071692675c84d;hpb=69f4685e616347559d4ec714fd826d7f97a472ef diff --git a/lib-mime/rfc822parse.c b/lib-mime/rfc822parse.c index 31b5d88..65b03b4 100644 --- a/lib-mime/rfc822parse.c +++ b/lib-mime/rfc822parse.c @@ -26,19 +26,7 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include -#include -#include +#include #include "recvattach.h" @@ -384,7 +372,7 @@ static void parse_content_disposition(const char *s, BODY *ct) */ BODY *mutt_read_mime_header(FILE *fp, int digest) { - BODY *body = mutt_new_body (); + BODY *body = body_new(); char *line = p_new(char, LONG_STRING); ssize_t linelen = LONG_STRING; char *p; @@ -573,7 +561,7 @@ mutt_parse_multipart(FILE *fp, const char *bound, off_t end_off, int digest) */ if (new->offset > end_off) { - mutt_free_body(&new); + body_list_wipe(&new); break; } @@ -1018,7 +1006,7 @@ mutt_read_rfc822_header(FILE *f, HEADER *hdr, short user_hdrs, short weed) off_t loc; if (hdr && !hdr->content) { - hdr->content = mutt_new_body (); + hdr->content = body_new(); /* set the defaults from RFC1521 */ hdr->content->type = TYPETEXT;