新しい (atarashii/new) IMAP client in Rust. It supports plain and secure connections.
It's under development...
```rust extern crate atarashii_imap; extern crate openssl;
use atarashii_imap::{Connection}; use openssl::ssl::{SslContext, SslStream}; use openssl::ssl::SslMethod::Sslv23;
//....... match Connection::opensecure("imap.gmail.com", SslContext::new(Sslv23).unwrap(), "gmaillogin@gmail.com", "password") { Ok(mut conn) => { match conn.select("inbox".tostring()) { Ok(selres) => { println!("select cmd result: {}", sel_res); }, Err(e) => println!("error") }
}, Err(e) => panic!("Unable open connection") }
```
Alex Maslakov | me@gildedhonour.com
Apache 2.0