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
1 changed files with 1 additions and 1 deletions

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])