Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageDecoderInfoUUE.CheckForStart
Implements detection of a UUEncoded packet, and creates the message coder for the message part.

function CheckForStart(ASender: TIdMessage; ALine: string): TIdMessageDecoder; override;
Parameters
ASender: TIdMessage
Message containing the message part.

ALine: string
Line from the message part to be examined for UUEncode formatting.

Returns
TIdMessageDecoder - Message Decoder class to use for the message part.

Description
CheckForStart is an overridden TIdMessageDecoder function in TIdMessageDecoderInfoUUE that implements recognizing information in UUEncoded message packet, like the header section and PermissionCode, as well as constructing a TIdMessageDecoderUUE for the associated message.

CheckForStart exame ALine to see if it contains a UUencode header section, which consists of the keyword "begin" and the space-delimited values for PermissionCode and Filename. If the header section is detected, CheckForStart also sets PartType to ptAttachment.