Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GildedHonour/atarashii_imap
新しい IMAP client in Rust
https://github.com/GildedHonour/atarashii_imap
email imap-client rust
Last synced: 7 days ago
JSON representation
新しい IMAP client in Rust
- Host: GitHub
- URL: https://github.com/GildedHonour/atarashii_imap
- Owner: GildedHonour
- License: apache-2.0
- Archived: true
- Created: 2016-04-29T04:42:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T02:56:28.000Z (about 7 years ago)
- Last Synced: 2024-04-06T12:37:34.223Z (7 months ago)
- Topics: email, imap-client, rust
- Language: Rust
- Size: 48.8 KB
- Stars: 39
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-cn - GildedHonour/atarashii_imap - ci.org/GildedHonour/atarashii_imap.svg?branch=master">](https://travis-ci.org/GildedHonour/atarashii_imap) (Libraries / Email)
- awesome-rust - GildedHonour/atarashii_imap - ci.org/GildedHonour/atarashii_imap.svg?branch=master">](https://travis-ci.org/GildedHonour/atarashii_imap) (Libraries / Email)
- awesome-rust-zh - GildedHonour/atarashii_imap - (atarashii / new)Rust 的 IMAP 新客户端。它支持普通和安全连接[<img src="https://api.travis-ci.org/GildedHonour/atarashii_imap.svg?branch=master">](https://travis-ci.org/GildedHonour/atarashii_imap) (库 / 电子邮件)
- awesome-rust - GildedHonour/atarashii_imap - ci.org/GildedHonour/atarashii_imap.svg?branch=master">](https://travis-ci.org/GildedHonour/atarashii_imap) (库 Libraries / 邮件 Email)
README
新しい IMAP client [![Build Status](https://travis-ci.org/GildedHonour/atarashii_imap.svg?branch=master)](https://travis-ci.org/GildedHonour/atarashii_imap) [![crates.io](https://img.shields.io/crates/v/atarashii_imap.svg)](https://crates.io/crates/atarashii_imap)
================================================新しい (atarashii/new) IMAP client in Rust. It supports plain and secure connections.
## In progress
It's under development...
## Usage
Put this in your `Cargo.toml`:
```toml
[dependencies]
atarashii_imap = ""
```### Example
```rust
extern crate atarashii_imap;
extern crate openssl;use atarashii_imap::{Client, Response, SslMode};
use native_tls::{TlsConnector, TlsConnectorBuilder, TlsStream, SslMethod, SslConnectorBuilder};
//.......match Client::connect("imap.gmail.com") {
Ok(mut client) => {
match conn.authenticate("[email protected]", "password") {
//todo// doing stuff with client
// ............client.disconnect();
},Err(e) => println!("authentication error")
}
},Err(e) => panic!("connection error")
}```
## Commands supported
* select(mailbox_name: &str)
* examine(mailbox_name: &str)
* create(mailbox_name: &str)
* delete(mailbox_name: &str)
* rename(current_name: &str, new_name: &str)
* subscribe(mailbox_name: &str)
* unsubscribe(mailbox_name: &str)
* close
* logout
* capability
* fetch
* copy(seq_set: String, mailbox_name: String)
* list(folder_name: &str, search_pattern: &str)
* lsub(folder_name: &str, search_pattern: &str)
* expunge
* check
* noop## Author
Alex Maslakov | [email protected]## License
Apache 2.0