From 4b3b92a76305b826209f9960e9406017ccccd7e0 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 7 Sep 2001 19:39:34 +0000 Subject: Reuse the original boundary instead of generating our own. 2001-09-07 Jeffrey Stedfast * camel-mime-part-utils.c (camel_mime_part_construct_content_from_parser): Reuse the original boundary instead of generating our own. svn path=/trunk/; revision=12681 --- camel/ChangeLog | 6 ++++++ camel/camel-mime-part-utils.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index c40edd003c..ec482228c7 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2001-09-07 Jeffrey Stedfast + + * camel-mime-part-utils.c + (camel_mime_part_construct_content_from_parser): Reuse the + original boundary instead of generating our own. + 2001-09-06 * providers/imap/camel-imap-folder.c (filter_proc): Thread diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index a1024ae2b2..086549d346 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -263,14 +263,17 @@ camel_mime_part_construct_content_from_parser (CamelMimePart *dw, CamelMimeParse camel_mime_part_construct_from_parser ((CamelMimePart *)content, mp); break; case HSCAN_MULTIPART: { + struct _header_content_type *content_type; CamelDataWrapper *bodypart; /* FIXME: we should use a came-mime-mutlipart, not jsut a camel-multipart, but who cares */ d(printf("Creating multi-part\n")); content = (CamelDataWrapper *)camel_multipart_new (); + + content_type = camel_mime_parser_content_type (mp); + camel_multipart_set_boundary ((CamelMultipart *)content, + header_content_type_param (content_type, "boundary")); - /* FIXME: use the real boundary? */ - camel_multipart_set_boundary ((CamelMultipart *)content, NULL); while (camel_mime_parser_step (mp, &buf, &len) != HSCAN_MULTIPART_END) { camel_mime_parser_unstep (mp); bodypart = (CamelDataWrapper *)camel_mime_part_new (); -- cgit