summaryrefslogtreecommitdiff
path: root/src/jwebmail/model
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-12-08 01:15:10 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-12-08 01:15:10 +0100
commitd08bc4fd1dab191db5ee01e81509c9b9b33c710d (patch)
tree6fc983ce4cfed330e07b212374c14860f3659245 /src/jwebmail/model
parentfed1f5786e848c159cba7f20503a915dce025db3 (diff)
reorder run arguments
it somehow works now?!!?! don't use getex command for redis set lang_code more explicit
Diffstat (limited to 'src/jwebmail/model')
-rw-r--r--src/jwebmail/model/read_mails.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py
index 291fa1e..ccd9bb9 100644
--- a/src/jwebmail/model/read_mails.py
+++ b/src/jwebmail/model/read_mails.py
@@ -27,13 +27,13 @@ class QMailAuthuser:
try:
completed_proc = subprocess_run(
f"{self._authenticator} true 3<&0",
- input=f"{self._username}\0{self._password}\0\0".encode(),
shell=True,
timeout=2,
+ input=f"{self._username}\0{self._password}\0\0".encode(),
)
if completed_proc.returncode == 0:
return True
- if completed_proc.returncode == 1:
+ elif completed_proc.returncode == 1:
return False
else:
raise QMAuthError("authentication error", completed_proc.returncode)