Internet Direct (Indy)
|
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;
Parameters |
Description |
ADestStream |
Stream to receive the decoded contents of the message part. |
AMsgEnd |
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.
TIdDecoderUUE.DecodeToStream
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |