Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageDecoderInfoMIME.CheckForStart
Detects a MIME boundary and creates a decoder class for the associated document.

function CheckForStart(ASender: TIdMessage; ALine: string): TIdMessageDecoder; override;
Parameters
ASender: TIdMessage
Message to associate with a decoder class.

ALine: string
Line from a message header to check for a MIME boundary.

Returns
TIdMessageDecoder - Decoder class instance for the message.

Description
CheckForStart is an overridden TIdMessageDecoder function in TIdMessageDecoderInfoMIME that is used to examine a line from an RFC message header for a MIME boundary marker. When the MIMEBoundary in ASender is detected in ALine, a new instance of the decoder class is created and associated with the messge ASender.