:ExtractFile()


Class

     aprMIME()

 

Syntax

     ExtractFile( cFilename, [hMessage] ) -> lSuccess

 

Parameters

 

cFilename

File name which will contain the extracted file attachment for the current message part.

 

hMessage

Optional. Handle of the message to act on. Provided during :CreateMessage() operation

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

 

Description

The :ExtractFile() method extracts the attachment stored in the current message part and writes it to the specified file. If the file does not exist, it will be created. If the file does exist, it will be overwritten with the contents of the attachment.

 

This function can extract binary file attachments that were encoded using the MIME base64 and uuencode algorithms.

  

See Also

:AttachFile(), :ExportMessage(), :ImportMessage()