diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-12-02 16:15:48 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-12-02 17:10:43 +0200 |
commit | 68f9d1220bbbd023a184aea3565149c8d45dbfe5 (patch) | |
tree | 9908e3f8739eea9dabaacc73ed058c0c2260b1c7 /melib/src/backends/imap/watch.rs | |
parent | 1408690a9a0d0976c17397be33bd4e886088a914 (diff) |
melib/imap: remove DoubleEndedIterator for ImapLineIterator
Diffstat (limited to 'melib/src/backends/imap/watch.rs')
-rw-r--r-- | melib/src/backends/imap/watch.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/melib/src/backends/imap/watch.rs b/melib/src/backends/imap/watch.rs index 48a2e80b..d1a5590c 100644 --- a/melib/src/backends/imap/watch.rs +++ b/melib/src/backends/imap/watch.rs @@ -275,10 +275,10 @@ pub async fn examine_updates( "list return status out: {}", String::from_utf8_lossy(&response) ); - let mut lines = response.split_rn(); - /* Remove "M__ OK .." line */ - lines.next_back(); - for l in lines { + for l in response.split_rn() { + if !l.starts_with(b"*") { + continue; + } if let Ok(status) = protocol_parser::status_response(&l).map(|(_, v)| v) { if Some(mailbox_hash) == status.mailbox { if let Some(total) = status.messages { |