summaryrefslogtreecommitdiff
path: root/src/jwebmail
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-11-21 16:56:28 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-11-21 16:56:28 +0100
commit3c959ea9445b43b992bcc200ce549fb3e4fff900 (patch)
tree297014f623240b9b4d746ccfebad62b615559844 /src/jwebmail
parent5324a38f8fbd41391741317f7e7ab2d69ec30623 (diff)
small round of fixes
Fix the mispelling of an error in the varlink iterface definition. Remove debug print statement. Remove an erroneus close on a qma that is not opened.
Diffstat (limited to 'src/jwebmail')
-rw-r--r--src/jwebmail/__init__.py2
-rw-r--r--src/jwebmail/model/de.jmhoffmann.jwebmail.mail-storage.varlink2
-rw-r--r--src/jwebmail/read_mails.py3
-rw-r--r--src/jwebmail/webmail.py1
4 files changed, 3 insertions, 5 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index f48db48..0a52677 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.7.0.dev0"
+__version__ = "2.7.0.dev1"
csrf = CSRFProtect()
diff --git a/src/jwebmail/model/de.jmhoffmann.jwebmail.mail-storage.varlink b/src/jwebmail/model/de.jmhoffmann.jwebmail.mail-storage.varlink
index 64a4073..3be999b 100644
--- a/src/jwebmail/model/de.jmhoffmann.jwebmail.mail-storage.varlink
+++ b/src/jwebmail/model/de.jmhoffmann.jwebmail.mail-storage.varlink
@@ -76,7 +76,7 @@ method Remove(folder: string, mid: string) -> ()
method AddFolder(name: string) -> (status: (created, skiped))
-error NotIninitialized()
+error NotInitialized()
error InvalidFolder(folder: string)
error InvalidMID(folder: string, mid: string)
error InvalidPathInMail(folder: string, mid: string, path: string)
diff --git a/src/jwebmail/read_mails.py b/src/jwebmail/read_mails.py
index 7775b12..f0f37c6 100644
--- a/src/jwebmail/read_mails.py
+++ b/src/jwebmail/read_mails.py
@@ -170,8 +170,7 @@ def login(username, password):
return False
else:
raise
- finally:
- qma.close()
+
r = _select_timeout_session()
r.set(username, password)
r.close()
diff --git a/src/jwebmail/webmail.py b/src/jwebmail/webmail.py
index 84cb6a7..99cc542 100644
--- a/src/jwebmail/webmail.py
+++ b/src/jwebmail/webmail.py
@@ -187,7 +187,6 @@ def writemail():
def _take_common_req_args(mapping):
- print(mapping)
res = dict()
if mapping.get("sort"):
res["sort"] = mapping["sort"]