Name Property


Contains the human-readable name of the mailbox.

You should use this property to display the mailbox name to the user. To pass the mailbox name to the IMAP server, it's recommended to set UTF7EncodeMailboxNames to False and use MailboxStatus.OriginalName instead.


Value Type: String
Parameters: None 
Remarks: This property is read-only

Usage example:

' This sample retrieves and displays the name of Inbox
Dim Mailer, Stats
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.IMAP4")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.IMAP4")
'In ASP use Response.Write instead of MsgBox
Mailer.EnableLogging = True
Mailer.LogFilePath = "C:\Temp\imap4_log.txt"
Mailer.ClearLog
Mailer.LicenseKey = "put your license key here"
If Mailer.Connect("mail.server.com", 143, "MyName", "MyPassword") Then
  Set Stats = Mailer.GetMailboxStatus("Inbox")
  If Not Stats Is Nothing Then
    MsgBox "Name=" & Stats.Name
    MsgBox "OriginalName=" & Stats.OriginalName
  End If
  Mailer.Disconnect
End If

See Also:

Delimiter Property
Flags Property
Mailbox.OriginalName Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.