Skip to content

Commit 49fc258

Browse files
committed
fix: do not ignore errors in add_flag_finalized_with_set
1 parent 0c51b4f commit 49fc258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/imap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use anyhow::{Context as _, Result, bail, ensure, format_err};
1717
use async_channel::{self, Receiver, Sender};
1818
use async_imap::types::{Fetch, Flag, Name, NameAttribute, UnsolicitedResponse};
1919
use deltachat_contact_tools::ContactAddress;
20-
use futures::{FutureExt as _, StreamExt, TryStreamExt};
20+
use futures::{FutureExt as _, TryStreamExt};
2121
use futures_lite::FutureExt;
2222
use num_traits::FromPrimitive;
2323
use rand::Rng;
@@ -1698,7 +1698,7 @@ impl Session {
16981698
.uid_store(uid_set, &query)
16991699
.await
17001700
.with_context(|| format!("IMAP failed to store: ({uid_set}, {query})"))?;
1701-
while let Some(_response) = responses.next().await {
1701+
while let Some(_response) = responses.try_next().await? {
17021702
// Read all the responses
17031703
}
17041704
Ok(())

0 commit comments

Comments
 (0)