summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-12-07 00:36:59 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-12-07 00:36:59 +0100
commit57d9c77df9ff834b6c6e9ef6ead863bdb9317a95 (patch)
treee7d486f215c0118d6fb0897c24aa5897995ea727 /src
parentbada35304072f4a62dfe688db0b1e4b6d7be62a5 (diff)
do path lookup of config progs
Diffstat (limited to 'src')
-rw-r--r--src/jwebmail/__init__.py4
-rw-r--r--src/jwebmail/model/__init__.py0
2 files changed, 2 insertions, 2 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index b7fd03f..ba0b6af 100644
--- a/src/jwebmail/__init__.py
+++ b/src/jwebmail/__init__.py
@@ -41,12 +41,12 @@ def validate_config(app):
assert "@" in conf["JWEBMAIL"]["ADMIN_MAIL"]
assert os_path.isdir(conf["JWEBMAIL"]["READ_MAILS"]["MAILBOX"])
- assert os_path.isfile(conf["JWEBMAIL"]["READ_MAILS"]["BACKEND"])
+ assert os_path.abspath(conf["JWEBMAIL"]["READ_MAILS"]["BACKEND"])
assert pwd.getpwnam(
conf["JWEBMAIL"]["READ_MAILS"].setdefault("MAILBOX_USER", environ["USER"])
)
- assert os_path.isfile(
+ assert os_path.abspath(
conf["JWEBMAIL"]["READ_MAILS"].setdefault("AUTHENTICATOR", "qmail-authuser")
)
diff --git a/src/jwebmail/model/__init__.py b/src/jwebmail/model/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/jwebmail/model/__init__.py