IMAP QUOTA - Public Folders do not have the correct limits

The Public Folder quota limits are not being applied correctly.
Example Config:

WebAdmin
# Configure Quota Public Folder Public Folders on Domain example.com
Limit total public folders size to: = 3000000
Limit total number of messages to: = 499997
Limit each folder size to:  = 1000000
Limit total number of messages per folder to: = 99998

# Configure Quota Public Folder Test on Domain example.com
Limit folder size to:  = 500000
Limit total number of messages to: = 99999

# Configure Quota Domain commande.com.au
Limit total mailbox size to: = 5000000
Limit total number of messages to: = 100000000
Limit each folder size to:  = 2000000
Limit total number of messages per folder to: = 9999999

.

The current IMAP response is :

a getquotaroot "~Public Folders/Test"
* QUOTAROOT "~Public Folders/Test" "~Public Folders/Test" ""
* QUOTA "~Public Folders/Test" (STORAGE 4 2000000 MESSAGE 1 10000000)
* QUOTA "" (STORAGE 728726 5000000 MESSAGE 64934 100000000)
a OK GETQUOTAROOT completed

Which is incorrect, 2000000 (Domain default folder limit) was returned instead of 500000 (This public folder limit). Also affecting the Message limit.

Also the users ‘quota root’ was included in the response for a query of the Public folder, This does not seem correct.

Expected IMAP response:

a getquotaroot "~Public Folders/Test"
* QUOTAROOT "~Public Folders/Test" "~Public Folders/Test" 
* QUOTA "~Public Folders/Test" (STORAGE 4 500000 MESSAGE 1 99999)
a OK GETQUOTAROOT completed

Hello Tim,

Thank you for your message.

I’ve check it and I understand there are 2 questions:

1/ why the QUOTA answer for a Public Folder (or Shared Mailbox) presents wrong quota values?
From our own tests it seems that the limit values from quota answer are the one for the logged in account and this will be investigated furthermore (most probably addressed via a bug report).

2/ why the user’s ‘quota root’ is included in the response for a query of the Public folder (or Shared Mailbox)
As answered in another thread opened by you, I could only say that this is the way Axigen has chosen to implement the quota IMAP extension (from RFC 2087).
Could you let us know which is your specific IMAP client / implementation that could not deal with our QUOTA response?

HTH,
Ioan