Skip to Content
0
Former Member
Jan 04, 2008 at 12:07 PM

receive an email attachment and process it

54 Views

Hello all,

could you please explain me, how can I process an email attachment, that comes into XI? My scenario is follows: I receive a mail with attachment into XI, search in attachment to which email this message should be forward and forward the modified message to receiver.

I' ve done successful the similar scenario with java mapping, where an incoming IDOC was parsed and mapped to mail message with attachment. Outgoing mail structure was in this case follows:

<?xml version="1.0"; encoding="UTF-8"?>

http://sap.com/xi/XI/Mail/30">

<Subject>=?utf-8?Q?Subject?=</Subject>

"mailSender"< mail@mail.com&;gt;

"mailReceiver"< tomail@mail.com&;gt;

<Content_Type>multipart/mixed; boundary="--AaZz"</Content_Type>

<Content>----AaZz

Content-Type: text/plain; charset=UTF-8

Content-Disposition: inline

Confirm with attachment.

----AaZz

Content-Type: application/xml;

name=Auftrag.xml

Content-Disposition: attachment;

filename=confirm.xml

<?xml version=&quota;1.0&;quot; encoding="UTF-8>

</Content></ns:Mail>

Now I try to repeat this, but I don't get such incoming structure from pipeline. I always see there two payloads: mailMessage and mailAttachment. Could anybody tell me, how have I to configure send channel to get such structure by receiving a mail into xi in xi payload? Is it possible? if no, than how can I handle with attachment of incoming mail message?

thanks in advance