Indy 9 | Content | Index | Reference

TIdMessageDecoderInfoMIME
Hierarchy, Methods, See Also, Unit: IdMessageCoderMIME
Represents a registered decoder class and detects the decoder boundary marker in a message part.

    TIdMessageDecoderInfoMIME = class(TIdMessageDecoderInfo)

Unit
IdMessageCoderMIME
Description
TIdMessageDecoderInfoMIME is a TIdMessageDecoderInfo descendant that implements the specifics of a registered decoder class for MIME-encoded RFC message parts. TIdMessageDecoderInfoMIME reimplements methods of the ancestor class to detect the presence of a MIMEBoundary in the associated message, and create a new MIME decoder instance for the message.

TIdMessageDecoderInfoMIME.CheckForStart
TIdMessageDecoderInfoMIME, See Also
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.
Return Value
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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.