The XLATDRIV sample application enables you to:
Before you run XLATDRIV, you must install the sample gateway as described in Installing the Sample_Gateway.
Source code for IPM_IN and IPM_OUT is in the corresponding directories under \BKOFFICE\SAMPLES\EXCHANGE. Source code for the remaining conversions is in the \BKOFFICE\SAMPLES\EXCHANGE\XLATCONV directory. You can choose a conversion from those described in the following table:
| Conversion DLL | Description | 
|---|---|
| IPM_IN.DLL | Translates a message from RFC 822 format to MAPI format. | 
| IPM_OUT.DLL | Translates a message from MAPI format to RFC 822 format. | 
| TNEFDEC.DLL | Decodes a TNEF copy of the message as an embedded message. | 
| TNEFENC.DLL | Adds an attachment containing an encoding of the entire content of the original message in TNEF format. | 
| TOUPPER.DLL | Adds an attachment containing the message text converted to uppercase. | 
| TRIVIAL.DLL | Adds an attachment with no changes. | 
Note Do not run multiple instances of XLATDRIV against the same gateway profile.
To run XLATDRIV, you must have a conversion point of SAMPLEGW.OUTBOUND for outbound conversion DLLs, and a conversion point of SAMPLEGW.INBOUND for inbound conversion DLLs.
 To build XLATDRIV
    To build XLATDRIV\BKOFFICE\SAMPLES\EXCHANGE\XLATDRIV directory.
 To run XLATDRIV
    To run XLATDRIVIPM_IN.DLL
IPM_OUT.DLL
TNEFDEC.DLL
TNEFENC.DLL
TOUPPER.DLL
TRIVIAL.DLL
Windows NT Server searches the directories listed in the path environment variable when attempting to locate a DLL, and searches directories in the path before it searches the current directory.
| Conversion DLL | Values | 
|---|---|
| IPM_IN.DLL | Classes : REG_MULTI_SZ : ENVELOPE.IPM REPORT.IPM | 
| Options : REG_SZ | |
| Conversion Point : REG_SZ : SAMPLEGW.INBOUND | |
| IPM_OUT.DLL | Classes : REG_MULTI_SZ : ENVELOPE.IPM REPORT.IPM | 
| Options : REG_SZ: | |
| Conversion Point : REG_SZ : SAMPLEGW.OUTBOUND | |
| TNEFDEC.DLL | Classes : REG_MULTI_SZ : ENVELOPE.IPM | 
| Options : REG_SZ : | |
| Conversion Point : REG_SZ : SAMPLEGW.INBOUND | |
| TNEFENC.DLL | Classes : REG_MULTI_SZ : ENVELOPE.IPM | 
| Options : REG_SZ : | |
| Conversion Point : REG_SZ : SAMPLEGW.OUTBOUND | |
| TOUPPER.DLL | Classes : REG_MULTI_SZ : ENVELOPE.IPM | 
| Options : REG_SZ : | |
| Conversion Point : REG_SZ : SAMPLEGW.OUTBOUND | |
| TRIVIAL.DLL | Classes : REG_MULTI_SZ : ENVELOPE.IPM | 
| Options : REG_SZ : | |
| Conversion Point : REG_SZ : SAMPLEGW.OUTBOUND | 
XLATDRIV supports the following three options:
For /DIRECTION = OUTBOUND, XLATDRIV reads messages from the gateway's MTS-OUT folder and converts them into XLT*.TMP text files in either the current directory or the directory specified by the /LOCATION option.
The default for /DIRECTION is OUTBOUND.
TNEFDEC.DLL only works with the /DIRECTION = INBOUND option. All other conversion DLLs in XLATCONV only work with the /DIRECTION = OUTBOUND option.
XLATDRIV NOTSERV <gateway> /DIRECTION=OUTBOUND
You can also add more XLT*.TMP files to your current directory and type:
XLATDRIV NOTSERV <gateway> /DIRECTION=INBOUND
See Sample Gateway Message Format for the format of the XLT*.TMP text files.
IPM_OUT.DLL writes the first line of a textized message as X-Tnef-Attach:<TNEF data filename, if any>. Therefore, files with TNEF attachments have the first line "X-Tnef-Attach:MAPIMAIL.DAT", and files without TNEF attachments have the first line "X-Tnef-Attach:".
This way, IPM_IN.DLL can easily determine if an input file has TNEF data by examining the first line of the file.