Sample code for 30+ languages & platforms
AutoIt Requires Chilkat v11.0.0+

Transition from Imap.FetchBundle to Imap.FetchMsgSet

Provides instructions for replacing deprecated FetchBundle method calls with FetchMsgSet.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oImap = ObjCreate("Chilkat.Imap")

;  ...
;  ...

$oMset = ObjCreate("Chilkat.MessageSet")
$bSuccess = $oImap.QueryMbx("FROM joe@example.com",True,$oMset)
;  ...
;  ...

;  ------------------------------------------------------------------------
;  The FetchBundle method is deprecated:

Local $oBundleObj = $oImap.FetchBundle($oMset)
If ($oImap.LastMethodSuccess = False) Then
    ConsoleWrite($oImap.LastErrorText & @CRLF)
    Exit
EndIf

;  ...
;  ...

;  ------------------------------------------------------------------------
;  Do the equivalent using FetchMsgSet.
;  Your application creates a new, empty EmailBundle object which is passed 
;  in the last argument and filled upon success.

Local $bHeadersOnly = False

$oBundleOut = ObjCreate("Chilkat.EmailBundle")
$bSuccess = $oImap.FetchMsgSet($bHeadersOnly,$oMset,$oBundleOut)
If ($bSuccess = False) Then
    ConsoleWrite($oImap.LastErrorText & @CRLF)
    Exit
EndIf