From ad3524ee83a902c47a88179c6a6b5b5c2fbc297f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 12 Jul 2002 06:59:08 +0000 Subject: oops, changed the location of where we check for multipart/encrypted svn path=/trunk/; revision=17435 --- camel/camel-mime-part-utils.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 348343b489..a76de32f0d 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -346,9 +346,6 @@ camel_mime_part_construct_content_from_parser (CamelMimePart *dw, CamelMimeParse if (header_content_type_is (camel_mime_parser_content_type (mp), "multipart", "signed")) { content = (CamelDataWrapper *) camel_multipart_signed_new (); camel_multipart_construct_from_parser ((CamelMultipart *) content, mp); - } else if (header_content_type_is (camel_mime_parser_content_type (mp), "multipart", "encrypted")) { - content = (CamelDataWrapper *) camel_multipart_encrypted_new (); - camel_multipart_construct_from_parser ((CamelMultipart *) content, mp); } else { content = camel_data_wrapper_new (); simple_data_wrapper_construct_from_parser (content, mp); @@ -361,7 +358,13 @@ camel_mime_part_construct_content_from_parser (CamelMimePart *dw, CamelMimeParse break; case HSCAN_MULTIPART: d(printf("Creating multi-part\n")); - content = (CamelDataWrapper *)camel_multipart_new(); + if (header_content_type_is (camel_mime_parser_content_type (mp), "multipart", "encrypted")) + content = (CamelDataWrapper *) camel_multipart_encrypted_new (); + else if (header_content_type_is (camel_mime_parser_content_type (mp), "multipart", "signed")) + content = (CamelDataWrapper *) camel_multipart_signed_new (); + else + content = (CamelDataWrapper *) camel_multipart_new (); + camel_multipart_construct_from_parser((CamelMultipart *)content, mp); d(printf("Created multi-part\n")); break; -- cgit