From 5734fcdc1bcba0ec69dca1064b8bb8fce94577e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Ortiz?= Date: Fri, 27 Jan 2017 09:53:39 -0600 Subject: [PATCH] Fixing Z-Push sync errors --- management/mailconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/mailconfig.py b/management/mailconfig.py index 5470855e..5d1b0cbe 100755 --- a/management/mailconfig.py +++ b/management/mailconfig.py @@ -82,8 +82,8 @@ def is_dcv_address(email): return True return False -def open_database(env, with_connection=False): - conn = sqlite3.connect(env["STORAGE_ROOT"] + "/mail/users.sqlite") +def open_database(env, with_connection=False, db_path="/mail/users.sqlite"): + conn = sqlite3.connect(env["STORAGE_ROOT"] + db_path) if not with_connection: return conn.cursor() else: