Mailbox Property  
 

Returns the name of the specified mailbox from a list of mailboxes on the server.

Syntax

object.Mailbox( Index )

Remarks

The Mailbox property array is used to enumerate the available mailboxes on the IMAP server. This is a zero-based array, which means that the index value for the first mailbox is zero. The total number of mailboxes that are available on the server is returned by the Mailboxes property.

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

Data Type

String

Example

The following example demonstrates how to use the Mailbox property array 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

Mailboxes Property, MailboxFlags Property, MailboxName Property, MailboxUID Property