From d08bc4fd1dab191db5ee01e81509c9b9b33c710d Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Fri, 8 Dec 2023 01:15:10 +0100 Subject: reorder run arguments it somehow works now?!!?! don't use getex command for redis set lang_code more explicit --- src/jwebmail/model/read_mails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jwebmail/model') 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) -- cgit v1.2.3