mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 05:46:29 +03:00
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:
committed by
link2xt
parent
3cbd647dad
commit
6543c7c26f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user