Internet Direct (Indy) Version 9.0.2 Beta
TIdAttachment.ContentDisposition
Indicates presentation and storage parameters for the message part.

property ContentDisposition: string;
Description
ContentDisposition is a String property that represents the value for the Internet Message header "Content-Disposition" as described in RFC 2183. ContentDisposition indicates presentation information for the message part and can contain values and optional parameters.

ContentDisposition can contain the value "inline" for an Internet Message where the body part should be display immediately, and in the order in which it occurs.

ContentDisposition can contain the value "attachment" followed by additional parameters to indicate that the message part is separate from the main body of the message. The parameter "filename" can be used to suggest a filename where the message part is detached and stored in a separate file. Other parameters can include "creation-date", "modification-date", "read-date", and "size".

When ContentDisposition contains "attachment", the FileName property reflects the file where the message part is stored.