Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageEncoderInfoMIME.InitializeHeaders
Updates message properties from headers in the message part.

procedure InitializeHeaders(AMsg: TIdMessage); override;
Parameters
AMsg: TIdMessage
Message associated with the encoder instance.

Description
InitializeHeaders is an overridden Procedure in TIdMessageEncoderInfoMIME that updates properties in an associated TIdMessage instance based on the contents of the message.

InitializeHeaders updates the TIdMessage.ContentType property to indicate the RFC message headers needed for the message specified in AMsg.