cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Email Adapter: Process multiples attachments of a single email

roger_alluivall
Participant
0 Kudos

Hello all,

is there any way to process all the attachments in a single email as different messages? I have the scenario that i receive an email with multiples attachments and i would like to process all of them as if they were single messages. Is it possible?

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

roger_alluivall
Participant
0 Kudos

any idea?

roger_alluivall
Participant
0 Kudos

i guess there are no ideas.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>I have the scenario that i receive an email with multiples attachments and i would like to process all of them as if they were single messages. Is it possible?

yes and no

no - you cannot process them as XI messages - only as one message with multiple attachments

yes - you can combine them all into one message and then split with different mappings to the same receiver

(multiple lines in interface determination)

or you can even split them one by one in the adapter module and send to XI as many messages as

attachments that you have (this approach requires some dev in the adapter module but it's doable)

Regards,

Michal Krawczyk

roger_alluivall
Participant
0 Kudos

That's what i want to try!! I have developed a module to extract all the attachments from an email (well a .eml file though). But then how can i return multiple inputModuleData? what i'm doing now is to use the method inputModuleData.setPrincipalData to set the first attachment, but i don't know what to do with the others. And i don't wanna use inputModuleData.setSupplementalData because then i generate attachments. How i make so my module generate more than one message??

Thanks in advance!!