From 36b6d6469d484f928a58b1420a9c47d416d9d9ed Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 12 Jul 2002 06:27:11 +0000 Subject: Handle multipart/encrypted parts too. 2002-07-12 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (get_content): Handle multipart/encrypted parts too. * camel-mime-part-utils.c (camel_mime_part_construct_content_from_parser): Handle multipart/encrypted types too. svn path=/trunk/; revision=17434 --- camel/camel-mime-part-utils.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'camel/camel-mime-part-utils.c') diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 037493b501..348343b489 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -39,6 +39,7 @@ #include "camel-mime-message.h" #include "camel-multipart.h" #include "camel-multipart-signed.h" +#include "camel-multipart-encrypted.h" #include "camel-seekable-substream.h" #include "camel-stream-fs.h" #include "camel-stream-filter.h" @@ -342,9 +343,12 @@ camel_mime_part_construct_content_from_parser (CamelMimePart *dw, CamelMimeParse case HSCAN_HEADER: d(printf("Creating body part\n")); /* multipart/signed is some fucked up type that we must treat as binary data, fun huh, idiots. */ - 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); + 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); -- cgit v1.2.3