Skip to main content

IsEncoded

property IsEncoded: Boolean read;

Example

procedure ReadFlag(const Part: TIdMessagePart; var Value: Variant);
begin
Value := Part.IsEncoded;
end;

Usage

IsEncoded is a read-only part flag that always returns False in the current Velox version. Do not use it to decide whether message content is encoded; inspect the part's content-transfer encoding and actual content instead.

Additional Technical Info

IsEncoded returns the protected FIsEncoded field. The base constructor sets it false.

A complete search of the current Velox and bundled Indy source finds no later assignment to this message-part field, including descendant/coder code. It therefore remains false for current native parts. This differs from similarly named message-level state and from historical design comments.

Do not use this property to decide whether Body/attachment bytes are decoded, whether ContentTransfer is accurate or whether encoding is required. Inspect the actual content/header pipeline and use the relevant encoder contract.

Native Assign does not copy the field. Reading is constant-time and side-effect free, but the borrowed part must remain alive.

The source-reviewed example exposes the value only and was not runtime-tested.

External references

Created 2026-07-15