projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make charset_canonicalize set the answer to "us-ascii" if s is NULL.
[apps/madmutt.git]
/
lib-mime
/
rfc822parse.c
diff --git
a/lib-mime/rfc822parse.c
b/lib-mime/rfc822parse.c
index
31b5d88
..
33012fd
100644
(file)
--- a/
lib-mime/rfc822parse.c
+++ b/
lib-mime/rfc822parse.c
@@
-384,7
+384,7
@@
static void parse_content_disposition(const char *s, BODY *ct)
*/
BODY *mutt_read_mime_header(FILE *fp, int digest)
{
*/
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;
char *line = p_new(char, LONG_STRING);
ssize_t linelen = LONG_STRING;
char *p;
@@
-573,7
+573,7
@@
mutt_parse_multipart(FILE *fp, const char *bound, off_t end_off, int digest)
*/
if (new->offset > end_off) {
*/
if (new->offset > end_off) {
-
mutt_free_body
(&new);
+
body_list_wipe
(&new);
break;
}
break;
}
@@
-1018,7
+1018,7
@@
mutt_read_rfc822_header(FILE *f, HEADER *hdr, short user_hdrs, short weed)
off_t loc;
if (hdr && !hdr->content) {
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;
/* set the defaults from RFC1521 */
hdr->content->type = TYPETEXT;