In case of multipart/mixed, getMessagePart looks for parts that have a content type for which there is a message builder registered. It selects the first one that is not text/plain, and only if there is none matching these two criteria it will select the first text/plain part. At least that is the intention. Maybe there is a bug in the code. What is the structure of the MIME message for which you get an unexpected result?
Andreas On Wed, Nov 19, 2008 at 10:54, Asankha C. Perera <[EMAIL PROTECTED]> wrote: > Hi Andreas > > In the MailTransportListener.processMail(), the code selects the primary > part from an email which is expected to be the main body in the SOAP > message. I think it should give preference to SOAP 1.1 or 1.2 parts over > plain text. Also, the current implementation uses the content type of this > primary part as the content type of the message, and thus a text/plain part > that becomes the primary part, seems to engage the text builder and not the > MIME builder, and thus seems to drop the attachments.. Have I missed > something, or is this indeed a bug we need to fix? Do/can we have a unit > test to cover this one? > > asankha > > -- > Asankha C. Perera > http://adroitlogic.org > > http://esbmagic.blogspot.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
