Try to use the original boundary so luis will stop bugging me about "data
authorJeffrey Stedfast <fejj@ximian.com>
Mon, 17 Dec 2001 00:57:10 +0000 (00:57 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Mon, 17 Dec 2001 00:57:10 +0000 (00:57 +0000)
2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (get_content): Try to use the
original boundary so luis will stop bugging me about "data
corruption".

camel/ChangeLog
camel/providers/imap/camel-imap-folder.c

index b0b483b..16e8727 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-16  Jeffrey Stedfast  <fejj@ximian.com>
+
+       * providers/imap/camel-imap-folder.c (get_content): Try to use the
+       original boundary so luis will stop bugging me about "data
+       corruption".
+
 2001-12-14  Jeffrey Stedfast  <fejj@ximian.com>
 
        * camel-filter-driver.c
index e32d169..c9b1d73 100644 (file)
@@ -1411,7 +1411,9 @@ get_content (CamelImapFolder *imap_folder, const char *uid,
                body_mp = camel_multipart_new ();
                camel_data_wrapper_set_mime_type_field (
                        CAMEL_DATA_WRAPPER (body_mp), ci->type);
-               camel_multipart_set_boundary (body_mp, NULL);
+               
+               /* FIXME: do we really need to set this? shouldn't it be set in the above call? */
+               camel_multipart_set_boundary (body_mp, header_content_type_param (ci->type, "boundary"));
                
                speclen = strlen (part_spec);
                child_spec = g_malloc (speclen + 15);
@@ -1450,7 +1452,7 @@ get_content (CamelImapFolder *imap_folder, const char *uid,
                        camel_object_unref (CAMEL_OBJECT (content));
                        camel_multipart_add_part (body_mp, part);
                        camel_object_unref (CAMEL_OBJECT (part));
-
+                       
                        ci = ci->next;
                }
                g_free (child_spec);