PMDF System Manager's Guide


Previous Next Contents Index

38.6.8 Content Type Mappings

Lotus Notes does not provide a means of directly associating content type information with its attachments. However, Lotus Notes does provide file name information, which can be used to infer MIME content types. Similarly, MIME content types can be converted into appropriate file names for Lotus Notes use. These optional conversions are implemented using a set of mapping tables in the mapping file. See Chapter 5 for general information on the mapping file.

The following sections describe all the mappings used by the Lotus Notes channel. Examples of these mappings are also provided in a sample file ln_mappings.sample in the PMDF table directory, i.e., PMDF_TABLE:ln_mappings.sample on OpenVMS or /pmdf/table/ln_mappings.sample on UNIX, included as part of the PMDF distribution.

38.6.8.1 MIME-TO-LN-CONTENT-TYPES Mapping

When sending to Lotus Notes, the Lotus Notes channels will preserve original file name information if it was present on the message part. However, in cases where no original file name information is present, the MIME-TO-LN-CONTENT-TYPES mapping table maps MIME content type and subtype information into Lotus Notes file name information. A minimal MIME-TO-LN-CONTENT-TYPES mapping would be:


MIME-TO-LN-CONTENT-TYPES 
 
  APPLICATION/POSTSCRIPT          PS.PS 
  IMAGE/GIF                       GIF.GIF 
  IMAGE/TIFF                      TIFF.TIF 
  TEXT/PLAIN                      TEXT.TXT 

The Lotus Notes API does not support having parts with the same name within the same message. Therefore, the Lotus Notes channel can need to modify the file name (either that originally present, or that generated via the MIME-TO-LN-CONTENT-TYPES mapping table) to ensure that each part's file name is unique. If a message arrives in Notes with several identically named attachments, then the second and subsequent ones are renamed. -n is appended to the part of the file name before the first period, or to the end of the name if no period is present, where n is 1 for the second file, 2 for the third, etc.

38.6.8.2 LN-TO-MIME-CONTENT-TYPES Mapping

The LN-TO-MIME-CONTENT-TYPES mapping table maps Lotus Notes attachment file names into MIME content type and subtype information. A minimal LN-TO-MIME-CONTENT-TYPES mapping would be:


LN-TO-MIME-CONTENT-TYPES 
 
  *.PS                            APPLICATION/POSTSCRIPT 
  *.GIF                           IMAGE/GIF 
  *.TIF                           IMAGE/TIFF 
  *.TXT                           TEXT/PLAIN 
  *.BAT                           TEXT/PLAIN 

38.6.8.3 LN-TO-MIME-ENCODINGS Mapping

The LN-TO-MIME-ENCODINGS mapping table maps Lotus Notes attachment file names into MIME content type and subtype information. A minimal LN-TO-MIME-ENCODINGS mapping would be:


LN-TO-MIME-ENCODINGS 
 
  *.PS                            QUOTED-PRINTABLE 
  *.GIF                           BASE64 
  *.TIF                           BASE64 
  *.TXT                           8BIT 
  *.BAT                           7BIT 


Previous Next Contents Index