summaryrefslogtreecommitdiff
path: root/src/jwebmail/model/read_mails.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwebmail/model/read_mails.py')
-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)