Internet Direct (Indy) Version 9.0.2 Beta
TIdMessageDecoderList.CheckForStart
Determines the registered decoder class instance to be used for an RFC 822 message part.

class function CheckForStart(ASender: TIdMessage; const ALine: string): TIdMessageDecoder;
Parameters
ASender: TIdMessage
Message to be associated with the decoder class instance.

const ALine: string
Text to be examined to determine the decoder needed for the message part.

Returns
TIdMessageDecoder - Decoder class instance for the message part.

Description
CheckForStart is a TIdMessageDecoder class function in TIdMessageDecoderList that determines the registered decoder class instance to be used for an RFC 822 message part.

CheckForStart examines the list of registered decoder classes, and calls the TIdMessageDecoderInfo.CheckForStart method for each instance. When a decoder class is found for the message part, the method exits and returns the TIdMessageDecoderInfo instance for the message part. If no decoder class is located for the message part, the return value for CheckForStart is Nil.