Disconnects from the mail server.
def disconnect() -> None: ...
This method makes the class disconnect from the mail_server by sending the QUIT command. If successful, all changes to the mailbox are committed by the server. Otherwise, changes are rolled back to the initial state that the server was in before the connection.