I’m using this code:
If imap.QuotaSupported Then
Dim quotaRoots() As ImapQuotaRoot = imap.GetQuotaRoot(ImapFolderInfo.InBox)
Dim size As Integer = quotaRoots(0).Quotas(0).Used
I check the size of the mailbox in webmail, and it seems that the size returned by the Used property is expressed in Kb. Is it correct? The GetMailboxSize function of the POP3 instead returns the size in byte. I need to convert the two different sizes in Mb so I should understand the format of each value.
Anyhow the GetQuotaRoot function seems to works fine but for some mailboxes I have an exception when I call the function GetQuotaRoot. The exception in a generic:
"Object reference not set to an instance of an object."
Unfortunately I don’t have a test mailbox on these servers so I can’t provide any information for testing. Are the some open tickets for the functionality?