1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-24 19:07:23 +01:00

removing the ability to configure the default quota -- default quota is always unlimited.

This commit is contained in:
Chad Furman
2024-07-12 13:54:49 -04:00
parent c01a1d5493
commit ceaf5338be
5 changed files with 5 additions and 49 deletions

View File

@@ -344,7 +344,7 @@ def add_mail_user(email, pw, privs, quota, env):
if validation: return validation
if quota is None:
quota = get_default_quota()
quota = '0'
try:
quota = validate_quota(quota)
@@ -429,10 +429,6 @@ def dovecot_quota_recalc(email):
# force dovecot to recalculate the quota info for the user.
subprocess.call(["doveadm", "quota", "recalc", "-u", email])
def get_default_quota(env):
config = utils.load_settings(env)
return config.get("default-quota", '0')
def validate_quota(quota):
# validate quota
quota = quota.strip().upper()