Internet Direct (Indy) Version 9.0.1 Beta
|
function CheckForStart(ASender: TIdMessage; ALine: string): TIdMessageDecoder; virtual; abstract;
ASender is the TIdMessage to be associated with the decoder class instance.
ALine is a line from the message part that will be examined to determine if the registered decoder can be used for decoding the message part.
Descendant classes, like TIdMessageDecoderInfoMIME, TIdMessageDecoderInfoUUE, and TIdMessageDecoderInfoXXE must implement comparisons to determine if ALine contains a marker signifying the start of a block using the specific encoding algorithm. If ALine contains the appropriate signature, a message decoder instance is created for ASender in the function return value. Otherwise the function return value is Nil.