Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346619

Summary: Generation of javax.mail.MIMEMessage from Microsoft Word Document: MimeMessage is not assembled properly.
Product: z_Archived Reporter: Otmar Caduff <otmar.caduff>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: hannes.mueller, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=346190
Whiteboard:
Attachments:
Description Flags
Proposed patch. zimmermann: iplog+

Description Otmar Caduff CLA 2011-05-20 05:54:27 EDT
Build Identifier: org.eclipse.scout.commons_3.7.0.201104261606

When attachments are supplied to the method, they are not added correctly to the MimeMessage. When both HTML and plain text are provided for the message, a mime part with content type "multipart/alternative" is added. However, when attachments are provided as well, those attachments are added as parts to that "multipart/alternative" part instead of to a "multipart/mixed" part. See tha attached solution proposal for details.

Reproducible: Always
Comment 1 Otmar Caduff CLA 2011-05-20 05:56:56 EDT
Created attachment 196195 [details]
Proposed patch.
Comment 2 Otmar Caduff CLA 2011-05-20 05:58:00 EDT
Proposed patch also contains fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=346190
Comment 3 Hannes Mueller CLA 2011-05-24 09:30:51 EDT
fixed on trunk of scout 3.7
Comment 4 Otmar Caduff CLA 2011-05-24 09:35:19 EDT
OK
Comment 5 Matthias Zimmermann CLA 2011-06-28 08:14:08 EDT
shipped with eclipse scout 3.7.0
Comment 6 Matthias Zimmermann CLA 2012-05-22 06:52:16 EDT
Comment on attachment 196195 [details]
Proposed patch.

moved iplog flag from bug to patch