diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-11 11:44:04 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-11 11:44:04 +0300 |
commit | 34d782f16fb9519f8ac65340e6627ee1312ccb90 (patch) | |
tree | 12a5eb387d03bd5daa6672f53c12065ebac96a0c /melib/src | |
parent | c7fbc5cafba788f56dc889cdbce3a507dc83eca9 (diff) |
imap: Remove panic from fetch_flags
Diffstat (limited to 'melib/src')
-rw-r--r-- | melib/src/backends/imap/operations.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/melib/src/backends/imap/operations.rs b/melib/src/backends/imap/operations.rs index 2d61a659..c102f860 100644 --- a/melib/src/backends/imap/operations.rs +++ b/melib/src/backends/imap/operations.rs @@ -148,8 +148,10 @@ impl BackendOp for ImapOp { Ok(v) => { if v.len() != 1 { debug!("responses len is {}", v.len()); + debug!(response); /* TODO: Trigger cache invalidation here. */ - panic!(format!("message with UID {} was not found", self.uid)); + debug!(format!("message with UID {} was not found", self.uid)); + return Flag::default(); } let (uid, (flags, _)) = v[0]; assert_eq!(uid, self.uid); |