client.py: Add confirmation prompt before connecting to autoconfigured hosts
This commit is contained in:
parent
b1f7d993c9
commit
7c8a5a377b
1 changed files with 4 additions and 0 deletions
|
@ -603,6 +603,10 @@ def main():
|
|||
if outgoing_server is None:
|
||||
raise RuntimeError('No working SMTP server found through autoconfiguration. Please specify manually.')
|
||||
print(f'Autoconfigured outgoing server: {outgoing_server}')
|
||||
confirm = input('Please confirm: [Y/n] ')
|
||||
if confirm.lower() not in ['', 'y', 'yes']:
|
||||
print('Aborted')
|
||||
exit(1)
|
||||
with incoming_server:
|
||||
now = datetime.utcnow()
|
||||
done = False
|
||||
|
|
Loading…
Reference in a new issue