Indy 9
TIdMessageDecoderInfoUUE
Hierarchy, Methods, See Also, Unit: IdMessageCoderUUE
Represents information about the registered decoder class used for decoding UUEncoded message parts.
TIdMessageDecoderInfoUUE = class(TIdMessageDecoderInfo)
Unit
IdMessageCoderUUE
Description
TIdMessageDecoderInfoUUE is a TIdMessageDecoderInfo descendant that represents information about the registered decoder class used for decoding UUEncoded message parts. TIdMessageDecoderInfoUUE extends the ancestor class to provide support for detecting the specifics of a UUEncoded packet, as well as representing information about the RFC message part in message headers.

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


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