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 headersOriginal MIME message headers (they are scanned for Content-Type, Content-Encoding etc)
STRING defaultcontenttypeDefault content type to assign to parts without their own type
Return value
INTEGERID for the decoder, use the function PrintTo to feed data to the decoder