fix config and oauth2

This commit is contained in:
Clément DOUIN
2023-12-04 16:25:56 +01:00
parent c54ada730b
commit ea9c28b9d7
9 changed files with 453 additions and 177 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ pub(crate) async fn configure(account_name: &str, email: &str) -> Result<Backend
ImapAuthConfig::Passwd(config)
}
Some(idx) if AUTH_MECHANISMS[idx] == OAUTH2 => {
let mut config = OAuth2Config::default();
let mut config = OAuth2Config::new()?;
let method = Select::with_theme(&*THEME)
.with_prompt("IMAP OAuth 2.0 mechanism")