TIdMIMEBoundary = class
New boundary markers are "added to the the top of the stack, using the Push method, when they are detected during header processing. Like any stack container, TIdMIMEBoundary also has mechanisms to Pop and Clear accumulated values in the boundary marker list.
TIdMIMEBoundary also provides a class function to locate a boundary marker in a given string, FindBoundary, without requiring a realized instance of the class.
An instance of TIdMIMEBoundary is used to represent the MIMEBoundary property in TIdMessage.
property Boundary: string;
property NewBoundary: Boolean;
NewBoundary is updated in the Push method. NewBoundary will contain True when the boundary list is not empty, and the current marker has the same value as the boundary marker on the top of the stack. Check NewBoundary after using Push to determine if the marker was added to the list.
destructor Destroy; override;
class function FindBoundary(AContentType: string): string;
During message header processing, FindBoundary is used to retrieve the boundary marker that will be added to the marker list using Push.
procedure Push(ABoundary: string);