Run black on all Python scripts!
This commit is contained in:
parent
fb6cfce656
commit
cd9cbcaa28
30 changed files with 1027 additions and 704 deletions
|
@ -25,7 +25,11 @@ if __name__ == "__main__":
|
|||
)
|
||||
parser.add_argument("-p", "--port", env_var="PORT", default=25)
|
||||
parser.add_argument(
|
||||
"-S", "--security", env_var="SECURITY", choices=["plain", "ssl", "starttls"], default='plain'
|
||||
"-S",
|
||||
"--security",
|
||||
env_var="SECURITY",
|
||||
choices=["plain", "ssl", "starttls"],
|
||||
default="plain",
|
||||
)
|
||||
|
||||
parser.add_argument("-l", "--helo", env_var="HELO")
|
||||
|
@ -67,7 +71,7 @@ if __name__ == "__main__":
|
|||
args.to = args.receiver
|
||||
if args.password:
|
||||
password = args.password
|
||||
args.password = '********'
|
||||
args.password = "********"
|
||||
|
||||
# Transmission content
|
||||
|
||||
|
@ -163,7 +167,7 @@ Input arguments:
|
|||
|
||||
# Transmission
|
||||
|
||||
if args.security != 'starttls':
|
||||
if args.security != "starttls":
|
||||
recv()
|
||||
send(f"EHLO {args.helo}")
|
||||
if args.user:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue