From 75d8c15def004b6e9f9a8c5873db3e34a4b5235b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sat, 24 Jun 2023 13:35:37 +0200 Subject: [PATCH] smtpdummy: allow to do unorthodox things --- config/scripts/smtpdummy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/scripts/smtpdummy b/config/scripts/smtpdummy index 2b167a4..1de7751 100755 --- a/config/scripts/smtpdummy +++ b/config/scripts/smtpdummy @@ -170,7 +170,7 @@ Input arguments: send("QUIT") # TODO Can loop if QUIT fails sys.exit(1) - def send(command: str) -> None: + def _send(command: str) -> None: if not args.quiet: print(colorama.Fore.BLUE + f"> {command}" + colorama.Fore.RESET) @@ -182,6 +182,8 @@ Input arguments: p.stdin.write(cmd) p.stdin.flush() + def send(command: str) -> None: + _send(command) recv() # Transmission