From 3c959ea9445b43b992bcc200ce549fb3e4fff900 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 21 Nov 2024 16:56:28 +0100 Subject: 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. --- src/jwebmail/__init__.py | 2 +- src/jwebmail/model/de.jmhoffmann.jwebmail.mail-storage.varlink | 2 +- src/jwebmail/read_mails.py | 3 +-- src/jwebmail/webmail.py | 1 - 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"] -- cgit v1.2.3