Skip to content

Add structured results for all values using imap-proto #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ path = "src/lib.rs"
native-tls = "0.1"
regex = "0.2"
bufstream = "0.1"
imap-proto = "0.3"
nom = "3.2.1"

[dev-dependencies]
base64 = "0.7"
6 changes: 3 additions & 3 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {

imap_socket.login("username", "password").unwrap();

match imap_socket.capability() {
match imap_socket.capabilities() {
Ok(capabilities) => for capability in capabilities.iter() {
println!("{}", capability);
},
Expand All @@ -31,8 +31,8 @@ fn main() {
};

match imap_socket.fetch("2", "body[text]") {
Ok(lines) => for line in lines.iter() {
print!("{}", line);
Ok(msgs) => for msg in &msgs {
print!("{:?}", msg);
},
Err(e) => println!("Error Fetching email 2: {}", e),
};
Expand Down
4 changes: 2 additions & 2 deletions examples/gmail_oauth2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ fn main() {
};

match imap_socket.fetch("2", "body[text]") {
Ok(lines) => for line in lines.iter() {
print!("{}", line);
Ok(msgs) => for msg in &msgs {
print!("{:?}", msg);
},
Err(e) => println!("Error Fetching email 2: {}", e),
};
Expand Down
Loading