Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Imap.ListSubscribed to Imap.MbxList
Provides instructions for replacing deprecated ListSubscribed method calls with MbxList.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oImap
LOCAL cReference
LOCAL cMbxPattern
LOCAL oMboxesObj
LOCAL nSubscribed
LOCAL oMboxes
nSuccess := 0
oImap := CreateObject("Chilkat.Imap")
// ...
// ...
cReference := ""
cMbxPattern := "*"
// ------------------------------------------------------------------------
// The ListSubscribed method is deprecated:
// Lists only subscribed mailboxes.
oMboxesObj := oImap:ListSubscribed(cReference, cMbxPattern)
IF (oImap:LastMethodSuccess == 0)
? oImap:LastErrorText
oImap:destroy()
RETURN
ENDIF
// ...
// ...
oMboxesObj:destroy()
// ------------------------------------------------------------------------
// 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.
nSubscribed := 1
oMboxes := CreateObject("Chilkat.Mailboxes")
nSuccess := oImap:MbxList(nSubscribed, cReference, cMbxPattern, oMboxes)
IF (nSuccess == 0)
? oImap:LastErrorText
oImap:destroy()
oMboxes:destroy()
RETURN
ENDIF
oImap:destroy()
oMboxes:destroy()