mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 11:56:30 +03:00
fix: do not ignore errors in add_flag_finalized_with_set
This commit is contained in:
@@ -17,7 +17,7 @@ use anyhow::{Context as _, Result, bail, ensure, format_err};
|
|||||||
use async_channel::{self, Receiver, Sender};
|
use async_channel::{self, Receiver, Sender};
|
||||||
use async_imap::types::{Fetch, Flag, Name, NameAttribute, UnsolicitedResponse};
|
use async_imap::types::{Fetch, Flag, Name, NameAttribute, UnsolicitedResponse};
|
||||||
use deltachat_contact_tools::ContactAddress;
|
use deltachat_contact_tools::ContactAddress;
|
||||||
use futures::{FutureExt as _, StreamExt, TryStreamExt};
|
use futures::{FutureExt as _, TryStreamExt};
|
||||||
use futures_lite::FutureExt;
|
use futures_lite::FutureExt;
|
||||||
use num_traits::FromPrimitive;
|
use num_traits::FromPrimitive;
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
@@ -1698,7 +1698,7 @@ impl Session {
|
|||||||
.uid_store(uid_set, &query)
|
.uid_store(uid_set, &query)
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("IMAP failed to store: ({uid_set}, {query})"))?;
|
.with_context(|| format!("IMAP failed to store: ({uid_set}, {query})"))?;
|
||||||
while let Some(_response) = responses.next().await {
|
while let Some(_response) = responses.try_next().await? {
|
||||||
// Read all the responses
|
// Read all the responses
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user