Crates.io | ms-autodiscover |
lib.rs | ms-autodiscover |
version | 0.3.3 |
source | src |
created_at | 2023-08-10 20:47:59.025117 |
updated_at | 2023-08-20 21:22:01.537321 |
description | An implementation of the Microsoft autodiscover protocol for Exchange |
homepage | |
repository | |
max_upload_size | |
id | 941344 |
size | 109,855 |
A Rust based implementation of the Microsoft autodiscover protocol for Exchange.
This is usefull for automatically detecting and finding a user's mail server configuration from just their username and password.
You can request a config by simply calling the from_email
function:
extern crate ms_autodiscover;
#[tokio::main]
async fn main() {
let config = ms_autodiscover::from_email("user@contoso.com", "example_password", None::<String>).await.unwrap();
match config {
AutodiscoverResponse::Pox(response) => {
println!("{}", response.user().display_name())
}
}
// Example output:
// "Contoso"
}