Service: zimbraAdmin

Command: RecalculateMailboxCounts
Namespace: urn:zimbraAdmin
Description: Recalculate Mailbox counts.
Forces immediate recalculation of total mailbox quota usage and all folder unread and size counts
Access: domain admin sufficient
note: this request is by default proxied to the account's home server
Properties:
Authorization token required true
Admin Authorization token required true

RecalculateMailboxCountsRequest

    <RecalculateMailboxCountsRequest> ## RecalculateMailboxCountsRequest
        <mbox id="{account-id}" /> ## MailboxByAccountIdSelector
    </RecalculateMailboxCountsRequest>

elements and attributes you can define within a <RecalculateMailboxCountsRequest> element:

XPath Required / Optional Description
/mbox Required (only 1) Mailbox selector
/mbox@id Required (only 1) Type: String
Account ID

RecalculateMailboxCountsResponse

    <RecalculateMailboxCountsResponse> ## RecalculateMailboxCountsResponse
        <mbox id="{account-id}" used="{quota-used} (long)" /> ## MailboxQuotaInfo
    </RecalculateMailboxCountsResponse>

elements and attributes you can define within a <RecalculateMailboxCountsResponse> element:

XPath Required / Optional Description
/mbox Required (only 1) Information about mailbox quotas
/mbox@id Required (only 1) Type: String
Account ID
/mbox@used Required (only 1) Type: long
Quota used