From a00292129478a2b38673fd39cd361c7142166d4d Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Fri, 8 Dec 2023 13:01:13 +0100 Subject: get header fields as optional --- src/jwebmail/model/read_mails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jwebmail/model') diff --git a/src/jwebmail/model/read_mails.py b/src/jwebmail/model/read_mails.py index ccd9bb9..b322a16 100644 --- a/src/jwebmail/model/read_mails.py +++ b/src/jwebmail/model/read_mails.py @@ -27,9 +27,9 @@ 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 -- cgit v1.2.3