mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-07-09 00:00:54 +00:00
Use utils.shell("check_call", ...)
rather than subprocess.call directly
This commit is contained in:
parent
061e74b623
commit
49d183afbb
@ -10,7 +10,6 @@
|
|||||||
# address entered by the user.
|
# address entered by the user.
|
||||||
|
|
||||||
import os, sqlite3, re
|
import os, sqlite3, re
|
||||||
import subprocess
|
|
||||||
|
|
||||||
import utils
|
import utils
|
||||||
from email_validator import validate_email as validate_email_, EmailNotValidError
|
from email_validator import validate_email as validate_email_, EmailNotValidError
|
||||||
@ -421,7 +420,7 @@ def dovecot_quota_recalc(email):
|
|||||||
# 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", email])
|
utils.shell("check_call", ["doveadm", "quota", "recalc", "-u", email])
|
||||||
|
|
||||||
def validate_quota(quota):
|
def validate_quota(quota):
|
||||||
# validate quota
|
# validate quota
|
||||||
|
Loading…
Reference in New Issue
Block a user