Sample code for 30+ languages & platforms
AutoIt

Transition from MailMan.FetchByMsgnum to MailMan.FetchOne

Provides instructions for replacing deprecated FetchByMsgnum method calls with FetchOne.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oMailman = ObjCreate("Chilkat.MailMan")

; ...
; ...

Local $iMsgnum = 123

; ------------------------------------------------------------------------
; The FetchByMsgnum method is deprecated:

Local $oEmailObj = $oMailman.FetchByMsgnum($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 = False
; Irrelevant because we are not downloading headers-only.
Local $iNumBodyLines = 0

$oEmailOut = ObjCreate("Chilkat.Email")
$bSuccess = $oMailman.FetchOne($bHeaderOnly,$iNumBodyLines,$iMsgnum,$oEmailOut)
If ($bSuccess = False) Then
    ConsoleWrite($oMailman.LastErrorText & @CRLF)
    Exit
EndIf