The primary purpose of MSDefault is to convert paging messages into an e-mail format that can be stored in the PMail message store. Pager messages typically consist of alphanumeric text, but a wireless service provider may use a proprietary format to include additional header information. MSDefault performs the following actions:
Each wireless service provider defines its own message format. MSDefault converts these different formats into a standard MAPI format by using parser routines stored in a DLL. These routines must be supplied by the wireless service provider.
The parser routine that MSDefault calls to reformat a message is chosen based upon the device and the address on which the message was received. The process of identifying a parser is hierarchical:
All messages received on a specified device and address must be able to be parsed by the parser found by this process. For more information on parsers, see Registering a Parser.
The default parser sets the From header field to the string "PAGER", sets the Type header field to "PAGE", and sets the Subject field to the first 80 characters of the body.
When MSDefault receives a message from the router, it searches the registry to find the parser DLL associated with the device and message address. It then loads the DLL, which must contain the ParseEmailHeaders function.