Indicates if the file is an Internet Mail document.
Syntax:
Remarks
To determine if the file is an internet mail document, FREDI scans for headers that conform to the syntax specified in the IETF RFC 822 document. For more information regarding the structure of an internet mail, please see mailMessage. The following condition must be true for FREDI to determine that it is an internet mail:
- Headers must exist.
- Headers conform to the syntax specified by RFC 822.
In the example below, FREDI only verifies the correctness of the headers in the shaded portion to determine that the document is an internet mail.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oFileSystem As Fredi.ediFileSystem
Dim oFile As Fredi.ediFile
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get file system object.
Set oFileSystem = oEdiDoc.GetFileSystem
' Get file object.
Set oFile = oFileSystem.GetFile(App.Path & "\TestFile_Mail.Txt")
If oFile.IsInternetMail Then
MsgBox oFile.FileName & " is an Internet Mail document"Else
MsgBox oFile.FileName & " is NOT an Internet Mail document"End If
Samples