Internet Direct (Indy) Version 9.0.1 Beta
|
procedure ReadHeader; override;
ReadHeader calls ReadLn to retrieve lines from the message part until a blank line, that signals the end of message headers, is retrieved. Message headers are added to the Headers property, with folded header lines being added to the most recent message header.
When ReadHeader has retrieved all message header line, the content-disposition header is examined to determine if the message part contains an attachment.
ReadHeader will update the message part type to ptText when an attachment is not found. When an attachment is indicated in the content-disposition message header, ReadHeader sets the message part type to ptAttachment and parses an optional filename into the Filename property.