Sample code for 30+ languages & platforms
Xojo Plugin

Transition from Imap.ListSubscribed to Imap.MbxList

Provides instructions for replacing deprecated ListSubscribed method calls with MbxList.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim imap As New Chilkat.Imap

// ...
// ...

Dim reference As String
reference = ""
Dim mbxPattern As String
mbxPattern = "*"

// ------------------------------------------------------------------------
// The ListSubscribed method is deprecated:

// Lists only subscribed mailboxes.
Dim mboxesObj As Chilkat.Mailboxes
mboxesObj = imap.ListSubscribed(reference,mbxPattern)
If (imap.LastMethodSuccess = False) Then
    System.DebugLog(imap.LastErrorText)
    Return
End If

// ...
// ...

// ------------------------------------------------------------------------
// 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.
Dim subscribed As Boolean
subscribed = True

Dim mboxes As New Chilkat.Mailboxes
success = imap.MbxList(subscribed,reference,mbxPattern,mboxes)
If (success = False) Then
    System.DebugLog(imap.LastErrorText)
    Return
End If