AutoIt
AutoIt
Transition from MailMan.FetchMultiple to MailMan.FetchUidlSet
Provides instructions for replacing deprecated FetchMultiple method calls with FetchUidlSet.Chilkat AutoIt Downloads
Local $bSuccess = False
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
$oSaUidls = ObjCreate("Chilkat.StringArray")
$oSaUidls.Append("aaa")
$oSaUidls.Append("bbb")
$oSaUidls.Append("ccc")
$oStUidls = ObjCreate("Chilkat.StringTable")
$oStUidls.Append("aaa")
$oStUidls.Append("bbb")
$oStUidls.Append("ccc")
; ------------------------------------------------------------------------
; The FetchMultiple method is deprecated:
Local $oBundleObj = $oMailman.FetchMultiple($oSaUidls)
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using FetchUidlSet.
; Your application creates a new, empty EmailBundle object which is passed
; in the last argument and filled upon success.
Local $bHeadersOnly = False
; Irrelevant because we are not downloading headers-only.
Local $iNumBodyLines = 0
$oBundleOut = ObjCreate("Chilkat.EmailBundle")
$bSuccess = $oMailman.FetchUidlSet($oStUidls,$bHeadersOnly,$iNumBodyLines,$oBundleOut)
If ($bSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf