Lianja
Lianja
Transition from Imap.ListSubscribed to Imap.MbxList
Provides instructions for replacing deprecated ListSubscribed method calls with MbxList.Chilkat Lianja Downloads
llSuccess = .F.
loImap = createobject("CkImap")
// ...
// ...
lcReference = ""
lcMbxPattern = "*"
// ------------------------------------------------------------------------
// The ListSubscribed method is deprecated:
// Lists only subscribed mailboxes.
loMboxesObj = loImap.ListSubscribed(lcReference,lcMbxPattern)
if (loImap.LastMethodSuccess = .F.) then
? loImap.LastErrorText
release loImap
return
endif
// ...
// ...
release loMboxesObj
// ------------------------------------------------------------------------
// 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.
llSubscribed = .T.
loMboxes = createobject("CkMailboxes")
llSuccess = loImap.MbxList(llSubscribed,lcReference,lcMbxPattern,loMboxes)
if (llSuccess = .F.) then
? loImap.LastErrorText
release loImap
release loMboxes
return
endif
release loImap
release loMboxes