summaryrefslogtreecommitdiff
path: root/src/jwebmail
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwebmail')
-rw-r--r--src/jwebmail/__init__.py6
-rw-r--r--src/jwebmail/model/read_mails.py2
-rw-r--r--src/jwebmail/webmail.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index d692c30..ff6d17c 100644
--- a/src/jwebmail/__init__.py
+++ b/src/jwebmail/__init__.py
@@ -36,7 +36,7 @@ else:
toml_read_file = dict(load=toml_load, text=True)
-__version__ = "2.6.0.dev0"
+__version__ = "2.6.0.dev1"
csrf = CSRFProtect()
@@ -46,9 +46,9 @@ def validate_config(app):
assert "@" in conf["JWEBMAIL"]["ADMIN_MAIL"]
- assert os_path.abspath(conf["JWEBMAIL"]["READ_MAILS"]["BACKEND"])
+ assert os_path.isfile(conf["JWEBMAIL"]["READ_MAILS"]["BACKEND"])
- assert os_path.abspath(
+ assert os_path.isfile(
conf["JWEBMAIL"]["READ_MAILS"].setdefault("AUTHENTICATOR", "qmail-authuser")
)
diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py
index 633c358..5c63bdd 100644
--- a/src/jwebmail/model/read_mails.py
+++ b/src/jwebmail/model/read_mails.py
@@ -116,7 +116,7 @@ class QMailAuthuser:
def add_folder(self, name):
req = pb2.AddFolderReq(name=name)
- resp = self.build_and_run("add_folder", req.SerializeToString())
+ resp = self.build_and_run("add-folder", req.SerializeToString())
r = pb2.AddFolderResp()
r.ParseFromString(resp)
return r.status
diff --git a/src/jwebmail/webmail.py b/src/jwebmail/webmail.py
index 9c446c2..7b2e352 100644
--- a/src/jwebmail/webmail.py
+++ b/src/jwebmail/webmail.py
@@ -203,7 +203,7 @@ def move(folder=""):
get_read_mails_logged_in().move(m, folder, to_folder)
flash(gettext("succ_move"))
- return redirect(url_for("displayheaders"), 303)
+ return redirect(url_for("displayheaders", folder=folder), 303)
def remove(folder=""):
@@ -224,7 +224,7 @@ def remove(folder=""):
get_read_mails_logged_in().move(m, folder, "Trash")
flash(gettext("succ_remove"))
- return redirect(url_for("displayheaders"), 303)
+ return redirect(url_for("displayheaders", folder=folder), 303)
def sendmail():