PIMM gate, PARSE_MIME_MESSAGE function
Splits the message into headers, which are stored in a headers container, and a body which is stored in a body container.
Input Parameters
The message container and headers container are accessed using CCSID 819. The body container is accessed using the CCSID determined from the charset parameter on the Content-type header.- BODY_CONTAINER
- The 16-byte name of the body container in the specified channel that is created to contain XOP or XML data. This is a container of DATATYPE(CHAR).
- CHANNEL_NAME
- Optional parameter
- The 16-byte name of the channel for all referenced containers. If this parameter is omitted, then the current channel is assumed.
- HEADERS_CONTAINER
- The 16-byte name of the headers container in the specified channel that is created to contain the MIME headers. This is a container of DATATYPE(CHAR).
- MESSAGE_CONTAINER
- The 16-byte name of the message container in the specified channel. This should be a container of DATATYPE(CHAR) that contains the MIME headers and the body of the message.
Output Parameters
- REASON
- The following values are returned when RESPONSE is EXCEPTION:
- CHANNEL_NOT_FOUND
- CONTAINER_NOT_FOUND
- CONTAINER_CCSID_ERROR
- CONTAINER_WRONG_TYPE
- CONTAINER_NAME_INVALID
- HEADER_SYNTAX_ERROR
- MIME_HEADER_ERROR
- ENCODING_NOT_SUPPORTED
- CHARSET_NOT_SUPPORTED
- RESPONSE
- Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.