OSB Email Transport Accessing Body Content With Multipart/alternative
(Doc ID 3069730.1)
Last updated on FEBRUARY 03, 2025
Applies to:
Oracle Service Bus - Version 12.2.1.4.0 and laterInformation in this document applies to any platform.
Goal
On : 12.2.1.4.0 version, OSB Transports
OSB Email Transport accessing body content with multipart/alternative
We are using Oracle Email Transport to receive / process email messages in OSB. When receiving emails with a body with Content Type "multipart/alternative", OSB only stores the first body part in the $body variable and other alternatives parts are lost.
Expecting that OSB could store the other body part(s) of the multipart/alternative as an attachment under $attachments variable, without header "Content-Disposition", but this is not the case.
Examining content of $attachemnts variable, with this type message we can see that it's empty:
The parts of a multipart/alternative email (e.g., text/plain and text/html) are considered as body content, not as attachments.
Attachments in the email are handled correctly in OSB Email Transport, even with a body with content type "multipart/alternative" and stored in $attachments variable. The "Content-Type" of email with attachments and body with content type "multipart/alternative" should be "multipart/mixed".
Configuring "Post Read Action" to archive, we can see that first alternative body content is archived and other alternative body content are store in files named "-ALSB_Email_Attachment_"; there is no way to access this content from pipeline.
Configuring logger "oracle.osb.debug.transports" to "TRACE:32", we can see that mail is received correctly by email transport, only in "transformation" to $body and $attachments variables, the alternative body content are not stored (we only have first part, the first alternative content). With this logging level we can search in the diagnostic log for "Raw Email Message" and "EmailWorkPartitioningAgent.processInboxMessages Num Of Attachments".
If possible evaluate the possibility of adding this functionality.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |