Internet Direct (Indy) Version 9.0.1 Beta
TIdMIMEBoundary.FindBoundary
Detects a boundary marker in a message header.

class function FindBoundary(AContentType: string): string;
Parameters
AContentType: string
Content type header to be checked for a boundary marker parameter.

Returns
String - Boundary marker detected or ''.

Description
FindBoundary is a String class function that examines the "content-Type" header specified in AContentType to detect the presence of a boundary marker parameter. If a boundary marker is present, it is removed from AContentType and used as the return value for the method. If a boundary marker is not detected, the return value for the method will be an empty string ('').

During message header processing, FindBoundary is used to retrieve the boundary marker that will be added to the marker list using Push.