Mailboxes Property  
 

Returns the number of mailboxes available on the server.

Syntax

object.Mailboxes

Remarks

The Mailboxes property returns the total number of mailboxes available to the current account on the server. This property can be used in conjunction with the Mailbox property array to enumerate the names of all of the mailboxes which can be selected by the client.

This property should only be referenced when connected to an IMAP server.

Data Type

Integer (Int32)

Example

The following example demonstrates how to use the Mailboxes property to populate a listbox that contains the names of the available mailboxes:

For nIndex = 0 To InternetMail.Mailboxes - 1
  List1.AddItem InternetMail.Mailbox(nIndex)
Next

See Also

Mailbox Property, MailboxFlags Property, MailboxName Property, MailboxUID Property