MIME (Multipurpose Internet Mail Extensions) defines a standard way of adding file attachments to email messages. In particular it defines "content-subtype" fields that allow for applications, WWW servers, etc. to identify particular types of data (eg, Postscript, HTML, JPEGs, etc).
|Inet$MimeMappings||File of mappings between RISC OS file types, MIME content types and 'dot' extensions to file names.|
The MimeMap module provides a central service for mapping between RISC OS file types, MIME content types and 'dot' extensions to file names.
When the module is loaded it reads the file Inet$MimeMappings and stores the parsed file internally. When ever the user tries to perform a mapping operation the translation is performed from the interally held data.
At the moment the module can handle 4 different file typing schemes: RISC OS file type by number, RISC OS file type by name, MIME content type string and file extension string. Any type can be converted to any other type.
The module is usually driven through a single SWI, MimeMap_Translate.
MimeMap_Translate (SWI 0x50B00)On entry On exit Use
Note that you should use MimeMap 0.10 or later, since earlier versions of the module had an incorrect SWI chunk.
Please email Ant Support if you have corrections, or questions relating to this document.
Last edit: 10th Apr 2016 at 1:55pm
Viewed 1640 times since 12th May 2006,