AutoIt
AutoIt
Transition from MailMan.GetHeaders to MailMan.FetchRange
Provides instructions for replacing deprecated GetHeaders method calls with FetchRange.Chilkat AutoIt Downloads
Local $bSuccess = False
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
Local $iNumBodyLines = 3
Local $iFromIndex = 0
Local $iToIndex = 9
; ------------------------------------------------------------------------
; The GetHeaders method is deprecated:
Local $oBundleObj = $oMailman.GetHeaders($iNumBodyLines,$iFromIndex,$iToIndex)
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using FetchRange.
; Your application creates a new, empty EmailBundle object which is passed
; in the last argument and filled upon success.
Local $bKeepOnServer = True
Local $bHeadersOnly = True
$oBundleOut = ObjCreate("Chilkat.EmailBundle")
$bSuccess = $oMailman.FetchRange($bKeepOnServer,$bHeadersOnly,$iNumBodyLines,$iFromIndex,$iToIndex,$oBundleOut)
If ($bSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf