pub async fn open(server: &Server, password: &str) -> Result<Imap, SyncError>
Connects, encrypts and logs in: with the password, or, for an account signed in with OAuth, with an access token (the password is then unused).