imap: Remove panic from fetch_flags

master
Manos Pitsidianakis 2020-06-11 11:44:04 +03:00
parent c7fbc5cafb
commit 34d782f16f
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 3 additions and 1 deletions

View File

@ -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);