melib/imap: prevent panic in untagged fetch response
parent
bda5bd963a
commit
927a0c3cc0
|
@ -138,8 +138,6 @@ impl ImapConnection {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
UntaggedResponse::Exists(n) => {
|
UntaggedResponse::Exists(n) => {
|
||||||
/* UID FETCH ALL UID, cross-ref, then FETCH difference headers
|
|
||||||
* */
|
|
||||||
debug!("exists {}", n);
|
debug!("exists {}", n);
|
||||||
try_fail!(
|
try_fail!(
|
||||||
mailbox_hash,
|
mailbox_hash,
|
||||||
|
@ -152,6 +150,9 @@ impl ImapConnection {
|
||||||
uid, flags, body, ..
|
uid, flags, body, ..
|
||||||
} in v
|
} in v
|
||||||
{
|
{
|
||||||
|
if uid.is_none() || flags.is_none() || body.is_none() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let uid = uid.unwrap();
|
let uid = uid.unwrap();
|
||||||
if self
|
if self
|
||||||
.uid_store
|
.uid_store
|
||||||
|
@ -260,6 +261,9 @@ impl ImapConnection {
|
||||||
uid, flags, body, ..
|
uid, flags, body, ..
|
||||||
} in v
|
} in v
|
||||||
{
|
{
|
||||||
|
if uid.is_none() || flags.is_none() || body.is_none() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let uid = uid.unwrap();
|
let uid = uid.unwrap();
|
||||||
if !self
|
if !self
|
||||||
.uid_store
|
.uid_store
|
||||||
|
|
Loading…
Reference in New Issue