4 releases
0.3.3 | Aug 20, 2023 |
---|---|
0.3.2 | Aug 13, 2023 |
0.3.1 | Aug 13, 2023 |
0.3.0 | Aug 10, 2023 |
#284 in Email
Used in dust-mail
56KB
1.5K
SLoC
Microsoft Autodiscover
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.
Usage
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"
}
Dependencies
~15–28MB
~432K SLoC