Skip to content

[PB-6473]: fix/set quota during account provisioning#63

Draft
jzunigax2 wants to merge 1 commit into
feat/mta-hooks-quotafrom
fix/set-quota-on-provisioning
Draft

[PB-6473]: fix/set quota during account provisioning#63
jzunigax2 wants to merge 1 commit into
feat/mta-hooks-quotafrom
fix/set-quota-on-provisioning

Conversation

@jzunigax2

Copy link
Copy Markdown
Contributor

In order for stalwart to accurately report back used spaced on a Jmap quota call the account must have a set quota, otherwise it just reports back 0. This PR sets a quota right on account provisioning setting the entire account's maxSpaceBytes as the quota, actual enforcement is handled by the mta hook

@jzunigax2 jzunigax2 self-assigned this Jun 10, 2026
@jzunigax2 jzunigax2 added the enhancement New feature or request label Jun 10, 2026
@jzunigax2 jzunigax2 requested a review from xabg2 June 10, 2026 21:07
@jzunigax2 jzunigax2 force-pushed the feat/mta-hooks-quota branch from 0eb5d20 to 6e5d202 Compare June 10, 2026 22:23
@jzunigax2 jzunigax2 changed the title [_]: fix/set quota during account provisioning [PB-6473]: fix/set quota during account provisioning Jun 11, 2026
- Integrated PaymentsService to retrieve user tier information during account provisioning.
- Added checks for mail and drive storage features based on the user's plan, throwing appropriate exceptions when features are not enabled.
- Updated unit tests to cover new scenarios for account provisioning failures related to tier restrictions.
- Refactored AccountService and UserController to streamline the handling of user tier validations.
@jzunigax2 jzunigax2 force-pushed the fix/set-quota-on-provisioning branch from cd05f3c to da14c61 Compare June 11, 2026 02:57
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant