From 8a9c7100007771a917dd1fd0bfc35779f388e1ed Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Wed, 9 May 2001 04:03:22 +0000 Subject: [PATCH] Fix for bug 78432. Do not display inline RFC822 message's attachement in the attachment list of message display. R=varada, SR=mscott --- mailnews/mime/src/mimemoz2.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mailnews/mime/src/mimemoz2.cpp b/mailnews/mime/src/mimemoz2.cpp index 5339b0049528..be7a5822d94b 100644 --- a/mailnews/mime/src/mimemoz2.cpp +++ b/mailnews/mime/src/mimemoz2.cpp @@ -296,6 +296,12 @@ BuildAttachmentList(MimeObject *aChild, nsMsgAttachmentData *aAttachData, char *part = mime_part_address(child); char *imappart = NULL; + + /* + if we are processing an inline RFC822 message, we should skip its childern + */ + Boolean isAnInlineMessage = mime_typep(child, (MimeObjectClass *) &mimeMessageClass); + /* AppleDouble part need special care: we need to fetch the part as well it's two children for the needed info as they could be anywhere, eventually, they won't contain @@ -304,7 +310,7 @@ BuildAttachmentList(MimeObject *aChild, nsMsgAttachmentData *aAttachData, PRBool isAnAppleDoublePart = mime_typep(child, (MimeObjectClass *) &mimeMultipartAppleDoubleClass) && ((MimeContainer *)child)->nchildren == 2; - if (!isAnAppleDoublePart) + if (!isAnAppleDoublePart && !isAnInlineMessage) if ( NS_FAILED(BuildAttachmentList((MimeObject *)child, aAttachData, aMessageURL)) ) return NS_OK;