hi,
i want to map a multipart mime message to an xml. the mime message looks
like this:
Message-ID: <...>
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_0_7859095.988367938056"
------=_Part_0_7859095.988367938056
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Description: InfoPart
Q1JFQVRFRHxudWxsfEZyIEFwciAyNyAxMjozODo1MCBDRVNUIDIwMDEjaiNEb2t1
bWVudCBlcnpldWd0I0Rva3VtZW50IGVyemV1Z3Q=
------=_Part_0_7859095.988367938056
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Description: HeaderPart
RElELWotOTg4MzY3OTMwMDM5LTY0NTc3MjM4Mjk0NzMyMTY0OTh8RFQ6U0lDT0VN
QUlMLTEuMHxqfHFxcXF8OTg4MzY3OTMwMDMx
------=_Part_0_7859095.988367938056
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Description: DataPart
[...]
so what i want to accomplish is maping this mime to a xml that would look
like this:
<root>
<InfoPart>Q1JFQVRFRHxudWxsfEZyIEFwciAyNyAxMjozODo1MCBDRVNUIDIwMDEjaiNEb2t1bWVudCBlcnpldWd0I0Rva3VtZW50IGVyemV1Z3Q=
</InfoPart>
<HeaderPart>RElELWotOTg4MzY3OTMwMDM5LTY0NTc3MjM4Mjk0NzMyMTY0OTh8RFQ6U0lDT0VNQUlMLTEuMHxqfHFxcXF8OTg4MzY3OTMwMDMx
</HeaderPart>
<DataPart>PD94bWwgdmVyc2lvbj0iMS4wIj8+Cgo8IURPQ1RZUEUgU2ljb0VtYWlsIFNZU1RFTSAnaHR0cDovL3d3dy5qdXN0c2ltcGxlLm5ldC9kdGQvZG9jdW1lbnRzL3NpY29lbWFpbC5kdGQnPgoKPFNpY29FbWFpbD4KCiAgPGhlYWRlcj4KCiAgICA8c3ViamVjdD50ZXN0PC9zdWJqZWN0PgoKICA8L2hlYWRlcj4KCiAgPGJvZHkgLz4KCjwvU2ljb0VtYWlsPgoK
</DataPart>
...
</root>
what i did so far is create a receive and a send ****t and add a
receivepipeline with the mime decoder. propably i have to create a flat
file
schema for the mime message and a xml schema for the xml output, then a
map.
i'm not quite sure about the flatfile schema. any ideas, suggestions?
regards
m.janke