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

Transition from Imap.ListSubscribed to Imap.MbxList

Provides instructions for replacing deprecated ListSubscribed method calls with MbxList.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oImap = ObjCreate("Chilkat.Imap")

;  ...
;  ...

Local $sReference = ""
Local $sMbxPattern = "*"

;  ------------------------------------------------------------------------
;  The ListSubscribed method is deprecated:

;  Lists only subscribed mailboxes.
Local $oMboxesObj = $oImap.ListSubscribed($sReference,$sMbxPattern)
If ($oImap.LastMethodSuccess = False) Then
    ConsoleWrite($oImap.LastErrorText & @CRLF)
    Exit
EndIf

;  ...
;  ...

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

;  Lists only subscribed mailboxes.
Local $bSubscribed = True

$oMboxes = ObjCreate("Chilkat.Mailboxes")
$bSuccess = $oImap.MbxList($bSubscribed,$sReference,$sMbxPattern,$oMboxes)
If ($bSuccess = False) Then
    ConsoleWrite($oImap.LastErrorText & @CRLF)
    Exit
EndIf