From 57d9c77df9ff834b6c6e9ef6ead863bdb9317a95 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 7 Dec 2023 00:36:59 +0100 Subject: do path lookup of config progs --- src/jwebmail/__init__.py | 4 ++-- src/jwebmail/model/__init__.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/jwebmail/model/__init__.py (limited to 'src/jwebmail') 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 -- cgit v1.2.3