Lianja
Lianja
Transition from Imap.ListMailboxes to Imap.MbxList
Provides instructions for replacing deprecated ListMailboxes method calls with MbxList.Chilkat Lianja Downloads
llSuccess = .F.
loImap = createobject("CkImap")
// ...
// ...
lcReference = ""
lcMbxPattern = "*"
// ------------------------------------------------------------------------
// The ListMailboxes method is deprecated:
// Lists all mailboxes, including unsubscribed.
loMboxesObj = loImap.ListMailboxes(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 all mailboxes, including unsubscribed.
llSubscribed = .F.
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