Internet Direct (Indy) Version 9.0.2 Beta
|
function RetrieveHeader(const AMsgNum: Integer; AMsg: TIdMessage): Boolean;
RetrieveHeader requires that ConnectionState contain the value csSelected, or an EIdConnectionStateError exception will be raised.
RetrieveHeader send the IMAP4 FETCH command for the specified message number to access the stored header values. RetrieveHeader insures that the untagged server response contains an RFC 822 header before calling ReceiveHeader to populate the header values in the message instance.
RetrieveHeader sets the return value to True when ResultNo contains the value wsOk.