mime-multipart-related
Takes any number of streams and combines them into a multipart/related. The boundary is invented automatically. The streams will be flattened before assembly.
Note for FlowForce Server Advanced Edition users: This function can be used to assemble a message that follows the optional AS2 profile Multiple Attachments (MA). The first stream will become a main part. All the parts get the "Content-ID" header with invented unique values before assembling multipart, if they don’t have it. The invented value is a new Message-ID as returned by the new-message-id function. Source streams are not affected.
Signature
mime-multipart-related(s:list of stream) -> stream |
Parameters
Name | Type | Description |
---|---|---|
s | list of stream | Specifies the input list of streams. |
Examples
The following expression returns a stream that includes two streams.
mime-multipart-related(list(part1, part2)) |