Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageDecoderInfoMIME.CheckForStart Method

Detects a MIME boundary and creates a decoder class for the associated document.

Pascal
function CheckForStart(
    ASender: TIdMessage; 
    const ALine: string
): TIdMessageDecoder; override;
Parameters 
Description 
ASender 
Message to associate with a decoder class.
 
ALine 
Line from a message header to check for a MIME boundary. 

TIdMessageDecoder - Decoder class instance for the message.

CheckForStart is an overridden TIdMessageDecoder function in TIdMessageDecoderInfoMIME that is used to create a decoder for MIME message parts. 

CheckForStart will create a decoder instance for the message in ASender when the MIME boundary marker in ASender is detected in ALine, or when ASender has an empty MIMEBoundary and the ContentTransferEncoding is 'base64' or 'quoted-printable'. 

Under all other conditions, the return value for the method is Nil.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.