AutoIt
AutoIt
Transition from MailMan.FetchSingleHeader to MailMan.FetchOne
Provides instructions for replacing deprecated FetchSingleHeader method calls with FetchOne.Chilkat AutoIt Downloads
Local $bSuccess = False
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
Local $iNumBodyLines = 5
Local $iMsgnum = 1
; ------------------------------------------------------------------------
; The FetchSingleHeader method is deprecated:
Local $oEmailObj = $oMailman.FetchSingleHeader($iNumBodyLines,$iMsgnum)
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using FetchOne.
; Your application creates a new, empty Email object which is passed
; in the last argument and filled upon success.
Local $bHeaderOnly = True
$oEmailOut = ObjCreate("Chilkat.Email")
$bSuccess = $oMailman.FetchOne($bHeaderOnly,$iNumBodyLines,$iMsgnum,$oEmailOut)
If ($bSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf