QuotaUsage Property
Gets the size of the occupied space in the mailbox in kilobytes (1024 bytes).
This property is set upon successful call of GetMailboxQuota method. If this method was never called, failed
or the IMAP connection is closed, the property returns -1. This can also happen in the server does not support QUOTA capability or if the quota is not set for the given mailbox or account.
GetMailboxQuota method returns the maximum size allocated for the mailbox while this
property returns the size of the actually occupied space.
Value Type: | Long | |
Parameters: | None | |
Remarks: | This property is read-only |
Usage example:
' This sample displays the quota limit and the used quota (in kilobytes) for the mail account Dim Mailer, QuotaLimit '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("mailserver.com", 143, "MyName", "MyPassword") Then QuotaLimit = Mailer.GetMailboxQuota("") MsgBox Mailer.QuotaUsage & " of " & QuotaLimit & " kilobytes used" Mailer.Disconnect End If
See Also:
RecentCount
Property
GetMailboxQuota Method
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.