Conversion entry mapping table callouts

From Messaging Server Technical Reference Wiki
Jump to: navigation, search


The value for a conversion parameter may be obtained by calling out to a mapping table. The syntax for calling out to a mapping table is


"'mapping-table-name:mapping-input'" 

For instance, with a mapping table


X-ATT-NAMES 
 
   postscript            PS.PS$Y 
   wordperfect5.1        WPC.WPC$Y 
   msword                DOC.DOC$Y 
 

then on UNIX, a conversion entry such as the following results in substituting generic file names in place of specific file names on attachments.


out-chan=tcp_local; in-type=application; in-subtype=*; 
  in-parameter-name-0=name; in-parameter-value-0=/*/*; 
  out-type=application; out-subtype='INPUT-SUBTYPE'; 
  out-parameter-name-0=name; 
  out-parameter-value-0="'X-ATT-NAMES:\\'INPUT_SUBTYPE\\''"; 
  command="cp $INPUT_FILE $OUTPUT_FILE" 

See also: