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

Transition from Imap.ListMailboxes to Imap.MbxList

Provides instructions for replacing deprecated ListMailboxes method calls with MbxList.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

set imap = Server.CreateObject("Chilkat.Imap")

'  ...
'  ...

reference = ""
mbxPattern = "*"

'  ------------------------------------------------------------------------
'  The ListMailboxes method is deprecated:

'  Lists all mailboxes, including unsubscribed.
' mboxesObj is a Chilkat.Mailboxes
Set mboxesObj = imap.ListMailboxes(reference,mbxPattern)
If (imap.LastMethodSuccess = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( imap.LastErrorText) & "</pre>"
    Response.End
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 all mailboxes, including unsubscribed.
subscribed = 0

set mboxes = Server.CreateObject("Chilkat.Mailboxes")
success = imap.MbxList(subscribed,reference,mbxPattern,mboxes)
If (success = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( imap.LastErrorText) & "</pre>"
    Response.End
End If


%>
</body>
</html>