Internet Direct (Indy) Version 9.0.2 Beta
|
function RetrievePeek(const AMsgNum: Integer; AMsg: TIdMessage): Boolean;
RetrievePeek requires that ConnectionState contain the value csSelected, or an EIdConnectionStateError exception wil be raised. RetrievePeek sends the IMAP4 FETCH command to retrieve data for the specified message number. RetrievePeek insures that the server response contains untagged resposnes for the desired message prior to calling ReceiveHeader and ReceiveBody to populate the message instance.
RetrievePeek sets the return value to True when ResultNo contains the value wsOk.