The QUOTA extension of IMAP4 that allows you to query the limits on resource usage (used and total available).
For a list of all members of this type, see Quota Members.
System.Object
Quota
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
[C#]
//load the imap object from the .config file
IMAP4 imap = new IMAP4( true, false );
imap.Login();
//get the quota for the account
Quota q = imap.GetQuota();
Console.WriteLine( q.ToString() );
//get the quota for the inbox
q = imap.GetQuotaRoot( "INBOX" );
Console.WriteLine( q.ToString() );
imap.Disconnect();
[VB.NET]
'load the imap object from the .config file
Dim imap As New IMAP4(True, False)
imap.Login()
'get the quota for the account
Dim q As Quota = imap.GetQuota()
Console.WriteLine(q.ToString())
'get the quota for the inbox
q = imap.GetQuotaRoot("INBOX")
Console.WriteLine(q.ToString())
imap.Disconnect()
Namespace: aspNetIMAP
Assembly: aspNetIMAP (in aspNetIMAP.dll)