1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

Do not execute a dovecot reload on every quota update

This commit is contained in:
John Supplee 2019-02-05 13:32:43 +02:00
parent d1378a5512
commit 19f204a9af

View File

@ -418,7 +418,7 @@ def dovecot_quota_recalc(email):
# a reload is necessary to reread the quota setting, but it will also shut down # a reload is necessary to reread the quota setting, but it will also shut down
# running dovecot processes. Email clients generally log back in when they lose # running dovecot processes. Email clients generally log back in when they lose
# a connection. # a connection.
subprocess.call(['doveadm', 'reload']) # subprocess.call(['doveadm', 'reload'])
# force dovecot to recalculate the quota info for the user. # force dovecot to recalculate the quota info for the user.
subprocess.call(["doveadm", "quota", "recalc" "-u", "%s" % email]) subprocess.call(["doveadm", "quota", "recalc" "-u", "%s" % email])