AutoIt Requires Chilkat v11.0.0+
AutoIt
Pass an Email object to the MIME API
See more Email Object Examples
Serialize an Email into a fresh BinData buffer and load those bytes into Mime to inspect the tree. Keep the original file separately when byte-for-byte preservation matters, such as for DKIM verification.
Chilkat AutoIt Downloads
Local $bSuccess = False
; Assumes Chilkat is unlocked. See Global Unlock Sample.
$oEmail = ObjCreate("Chilkat.Email")
$bSuccess = $oEmail.LoadEml("message.eml")
If ($bSuccess <> True) Then
ConsoleWrite($oEmail.LastErrorText & @CRLF)
Exit
EndIf
$oMimeBytes = ObjCreate("Chilkat.BinData")
$bSuccess = $oEmail.GetMimeBd($oMimeBytes)
If ($bSuccess <> True) Then
ConsoleWrite($oEmail.LastErrorText & @CRLF)
Exit
EndIf
$oMime = ObjCreate("Chilkat.Mime")
$bSuccess = $oMime.LoadMimeBd($oMimeBytes)
If ($bSuccess <> True) Then
ConsoleWrite($oMime.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite($oMime.GetStructure("text") & @CRLF)