Do not execute a dovecot reload on every quota update
This commit is contained in:
parent
d1378a5512
commit
19f204a9af
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue