Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot increase mailbox more than 50Gb using UI #2998

Open
nike7o0 opened this issue Oct 23, 2023 · 4 comments
Open

Cannot increase mailbox more than 50Gb using UI #2998

nike7o0 opened this issue Oct 23, 2023 · 4 comments
Assignees
Labels
priority/p2 Minor bug / Could have type/enhancement Enhances existing functionality

Comments

@nike7o0
Copy link

nike7o0 commented Oct 23, 2023

Environment & Version

  • docker compose version
  • Version: 2.0

Description

Cannot increase mailbox more than 50Gb using UI

@nextgens
Copy link
Contributor

What should be the maximum? Would having a text box instead of a slider be better?

@nextgens nextgens added priority/p2 Minor bug / Could have type/enhancement Enhances existing functionality labels Oct 24, 2023
@ghostwheel42
Copy link
Contributor

ghostwheel42 commented Oct 25, 2023

Isn't the maximum set by an environment variable?
Ah, no, it's fixed here:

core/admin/mailu/ui/templates/domain/create.html
13:  {{ macros.form_field(form.max_quota_bytes, step=50*10**6, max=50*10**9, data_infinity="true", data_unit=10**9,

I think setting max to some value coming from env like app.config['MAX_QUOTA'] or 50*10**9 would help.

The user slider should already expand, when the domain's max quota is above 50G:

core/admin/mailu/ui/templates/user/create.html
25:  {{ macros.form_field(form.quota_bytes, step=50*10**6, max=(max_quota_bytes or domain.max_quota_bytes or 50*10**9), data_infinity="true", data_unit=10**9,

When domain quota is set to 0 (displayed as "infinity") it's effectively 50G in the user screen.
I don't see how we can have "real" infinity while keeping the slider, so I would propose setting a "global" maximum via env.

@nike7o0
Copy link
Author

nike7o0 commented Oct 25, 2023

For me textbox is fine. (:

@ghostwheel42 ghostwheel42 self-assigned this Nov 6, 2023
@nike7o0
Copy link
Author

nike7o0 commented Feb 8, 2024

Is this env MAX_QUOTA implemented ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/p2 Minor bug / Could have type/enhancement Enhances existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants