CreateMimeDecoder (open)

Set up a MIME message decoder

Syntax

LOADLIB "wh::internet/mime.whlib";

INTEGER FUNCTION CreateMimeDecoder(RECORD ARRAY headers, STRING defaultcontenttype)

Parameters

RECORD ARRAY headers

Original MIME message headers (they are scanned for Content-Type, Content-Encoding etc)

STRING defaultcontenttype

Default content type to assign to parts without their own type

Return value

INTEGER

ID for the decoder, use the function PrintTo to feed data to the decoder