smtpdummy: allow to do unorthodox things
This commit is contained in:
parent
5ab08a4f77
commit
75d8c15def
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue