diff --git a/Cargo.lock b/Cargo.lock index 363e0cf..a03d795 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,8 +1,8 @@ [root] name = "buzz" -version = "1.0.3" +version = "1.0.4" dependencies = [ - "imap 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "imap 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "mailparse 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "notify-rust 3.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "openssl 0.9.19 (registry+https://github.com/rust-lang/crates.io-index)", @@ -515,7 +515,7 @@ dependencies = [ [[package]] name = "imap" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bufstream 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1175,7 +1175,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum gobject-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "87373f64e136e9ea192ff5d3ef676a51e9ac6ab06b629223a081e0523c5f04e2" "checksum gtk 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "78d69fb7425fd6efba3b0c99f952b130fa4a0fdfdffbceb2b40ba018b2ed6a77" "checksum gtk-sys 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "9391d0b50af734dbd54582d1836d0346d8daf6dc5e7f272afea96f4dcaf50b74" -"checksum imap 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "041ff3b72f86de7b8c92d26e44a3c3fceb82c394a585687c7f1f033227484636" +"checksum imap 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "971e0bddce749801940e03daeab4bae35cf6bc572573e85d07612eef4420e790" "checksum itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8324a32baf01e2ae060e9de58ed0bc2320c9a2833491ee36cd3b4c414de4db8c" "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" "checksum lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf" diff --git a/Cargo.toml b/Cargo.toml index 11d2d5e..786b50c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "buzz" -version = "1.0.3" +version = "1.0.4" description = "A simple system tray application for notifying about unseen e-mail" readme = "README.md" @@ -19,7 +19,7 @@ license = "MIT/Apache-2.0" debug=true [dependencies] -imap = "0.4.0" +imap = "0.5.0" openssl = "0.9.14" systray = "0.2.0" mailparse = "0.5.1" diff --git a/src/main.rs b/src/main.rs index 3df8826..c3f901e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,8 +178,7 @@ impl Connection { tx.send((account, num_unseen)).unwrap(); // IDLE until we see changes - let mut idle = self.socket.idle()?; - idle.wait_keepalive()?; + self.socket.idle()?.wait_keepalive()?; } } }