diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-08 03:39:34 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-08 03:39:34 +0800 |
commit | 4b3b92a76305b826209f9960e9406017ccccd7e0 (patch) | |
tree | afb76d70cc6154b4fc0814b4f9feb9fd86076446 /camel | |
parent | 109c5702bab44785c2fb7377245fe293ff5c169c (diff) | |
download | gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.tar gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.tar.gz gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.tar.bz2 gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.tar.lz gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.tar.xz gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.tar.zst gsoc2013-evolution-4b3b92a76305b826209f9960e9406017ccccd7e0.zip |
Reuse the original boundary instead of generating our own.
2001-09-07 Jeffrey Stedfast <fejj@ximian.com>
* 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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-mime-part-utils.c | 7 |
2 files changed, 11 insertions, 2 deletions
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 <fejj@ximian.com> + + * camel-mime-part-utils.c + (camel_mime_part_construct_content_from_parser): Reuse the + original boundary instead of generating our own. + 2001-09-06 <NotZed@Ximian.com> * 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 (); |