Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageDecoder.ReadBody Method

Specifies the message decoder method used to extract an RFC-2822 message body.

Pascal
function ReadBody(
    ADestStream: TIdStream; 
    var AMsgEnd: Boolean
): TIdMessageDecoder; virtual; abstract;
Parameters 
Description 
ADestStream 
Stream where message body content will be stored.
 
AMsgEnd 
Indicates the end of the message was encountered. 

TIdMessageDecoder - Message decoder used to process the message part.

ReadBody is an abstract virtual function in TIdMessageDecoder that Specifies the method used to extract an RFC-2822 message body in TIdMessageDecoder descendants to the stream specified in ADestStream. 

AMsgEnd is a variable parameter that indicates the end of the message was encountered while reading the body of the message or message part. 

TIdMessageDecoder descendants must re-implement the ReadBody method to provide support for the appropriate encoding algorithm and/or processing based on specific RFC message header values. 

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.