[ https://issues.apache.org/jira/browse/CAMEL-10302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephan Siano updated CAMEL-10302: ---------------------------------- Description: The camel-mail component currently handle mails with attachments where the mail body is a plain text message. In this case the MIME-Structure looks as follows: {noformat} mulipart/mixed |- text/plain -> body |- image/png -> attachment[0] |- text/plain -> attachment[1] {noformat} However if the mail is e.g. sent by Outlook and the mail body contains formating and a picture, the resulting multipart structure might look like this {noformat} multipart/mixed |- multipart/related | |- multipart/alternative | | |- text/plain -> body | | |- text/html | |- image/png -> attachment[0] |- text/plain -> attachment[1] {noformat} Without the patch, the attachments will be as expected, but the body will be the same as attachment\[1\] (or some bogus string if the mail does not contain a text attachment). was: The camel-mail component currently handle mails with attachments where the mail body is a plain text message. In this case the MIME-Structure looks as follows: {noformat} mulipart/mixed |- text/plain -> body |- image/png -> attachment[0] |- text/plain -> attachment[1] {noformat} However if the mail is e.g. sent by Outlook and the mail body contains formating and a picture, the resulting multipart structure might look like this {noformat} multipart/mixed |- multipart/related | |- multipart/alternative | | |- text/plain -> body | | |- text/html | |- image/png -> attachment[0] |- text/plain -> attachment[1] {noformat} Without the patch, the attachments will be as expected, but the body will be the same as attachment[1] (or some bogus string if the mail does not contain a text attachment). > Extract body from nested multiparts > ----------------------------------- > > Key: CAMEL-10302 > URL: https://issues.apache.org/jira/browse/CAMEL-10302 > Project: Camel > Issue Type: Improvement > Components: camel-mail > Affects Versions: 2.17.3 > Reporter: Stephan Siano > Assignee: Stephan Siano > Priority: Minor > > The camel-mail component currently handle mails with attachments where the > mail body is a plain text message. In this case the MIME-Structure looks as > follows: > {noformat} > mulipart/mixed > |- text/plain -> body > |- image/png -> attachment[0] > |- text/plain -> attachment[1] > {noformat} > However if the mail is e.g. sent by Outlook and the mail body contains > formating and a picture, the resulting multipart structure might look like > this > {noformat} > multipart/mixed > |- multipart/related > | |- multipart/alternative > | | |- text/plain -> body > | | |- text/html > | |- image/png -> attachment[0] > |- text/plain -> attachment[1] > {noformat} > Without the patch, the attachments will be as expected, but the body will be > the same as attachment\[1\] (or some bogus string if the mail does not > contain a text attachment). -- This message was sent by Atlassian JIRA (v6.3.4#6332)