fetch_single_msg: do not ignore dc_receive_imf errors

If error is ignored, the message will never be fetched again, even if
there was a database write error.

dc_receive_imf itself is modified to ignore unrecoverable errors, to
prevent endless refetching of incorrect messages.
This commit is contained in:
Alexander Krotov
2020-05-03 05:08:22 +03:00
committed by link2xt
parent 3cbd647dad
commit 6543c7c26f
2 changed files with 22 additions and 12 deletions

View File

@@ -733,13 +733,7 @@ impl Imap {
if let Err(err) =
dc_receive_imf(context, &body, folder.as_ref(), server_uid, is_seen)
{
warn!(
context,
"dc_receive_imf failed for imap-message {}/{}: {:?}",
folder.as_ref(),
server_uid,
err
);
return Err(Error::Other(format!("dc_receive_imf error: {}", err)));
}
}
} else {