PIMM gate, PARSE_MIME_HEADERS function

Retrieves selected MIME header values from a MIME headers container or a MIME message container. The results are edited into a standard format, removing excess white space and comments, and converting case-insensitive keywords to lower case.

Input Parameters

CCSID
The fullword binary CCSID value. This is used for header value input and output parameters such as CONTENT_ID.
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.
CONTENT_DESCRIPTION
Optional parameter
A buffer for the Content-Description header value in the specified CCSID.
CONTENT_ID
Optional parameter
A buffer for the Content-ID header value in the specified CCSID.
CONTENT_TRAN_ENCODING
Optional parameter
A buffer for the Content-Transfer-Encoding header value in the specified CCSID. This is the value specified on the header, without any white space or comments.
CONTENT_TYPE
Optional parameter
A buffer for the Content-Type header value in the specified CCSID.
HEADERS_CONTAINER
The 16-byte name of the headers container in the specified channel. This should be a container of DATATYPE(CHAR) that contains the MIME headers.

Output Parameters

REASON
The following values are returned when RESPONSE is EXCEPTION:
  • OUTPUT_BUFFER_OVERFLOW
  • CCSID_NOT_SUPPORTED
  • CHANNEL_NOT_FOUND
  • CONTAINER_NOT_FOUND
  • CONTAINER_CCSID_ERROR
  • CONTAINER_WRONG_TYPE
  • HEADER_SYNTAX_ERROR
  • MIME_HEADER_ERROR
  • INVALID_CHARACTER
  • ENCODING_NOT_SUPPORTED
  • CHARSET_NOT_SUPPORTED
RESPONSE
Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.


dfhs3_PIMMparse_mime_headers.html | Timestamp icon Last updated: Monday, 5 June 2017