Topic Path: Symbol Reference > Classes > TIdMessageDecoderUUE Class > TIdMessageDecoderUUE Methods > ReadBody Method
TIdMessageDecoderUUE.ReadBody Method

Implements reading and decoding the body of an RFC 2822-compliant message part using the UUDecode algorithm.

function ReadBody(
    ADestStream: TIdStream; 
    var AMsgEnd: Boolean
): TIdMessageDecoder; override;
Stream to receive the decoded contents of the message part.
Indicates if the end of the message was encountered. 

TIdMessageDecoder - Message decoder class used for the message part.

ReadBody is an overridden TIdMessageDecoder function in TIdMessageDecoderUUE that implements reading and decoding of an RFC 2822-compliant message part using the UUDecode algorithm. 

ReadBody constructs an internal decoder class, either TIdDecoderUUE or TIdDecoderXXE, based on the value of the length byte in the encoded body line. If the body line does not contain a value expected for UUE- or XXE-encoded lines, an EIdException will be raised with the constant message RSUnrecognizedUUEEncodingScheme

ReadBody calls ReadLn until the end of the encoded message stream is reached. Each line read from the input stream is processed using the DecodeToStream method for the decoder class instance.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.