mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
feat: server_sent_unsolicited_exists(): Log folder name
This commit is contained in:
@@ -1911,13 +1911,14 @@ impl Session {
|
|||||||
use async_imap::imap_proto::ResponseCode;
|
use async_imap::imap_proto::ResponseCode;
|
||||||
use UnsolicitedResponse::*;
|
use UnsolicitedResponse::*;
|
||||||
|
|
||||||
|
let folder = self.selected_folder.as_deref().unwrap_or_default();
|
||||||
let mut unsolicited_exists = false;
|
let mut unsolicited_exists = false;
|
||||||
while let Ok(response) = self.unsolicited_responses.try_recv() {
|
while let Ok(response) = self.unsolicited_responses.try_recv() {
|
||||||
match response {
|
match response {
|
||||||
Exists(_) => {
|
Exists(_) => {
|
||||||
info!(
|
info!(
|
||||||
context,
|
context,
|
||||||
"Need to fetch again, got unsolicited EXISTS {:?}", response
|
"Need to refetch {folder:?}, got unsolicited EXISTS {response:?}"
|
||||||
);
|
);
|
||||||
unsolicited_exists = true;
|
unsolicited_exists = true;
|
||||||
}
|
}
|
||||||
@@ -1936,7 +1937,7 @@ impl Session {
|
|||||||
) => {}
|
) => {}
|
||||||
|
|
||||||
_ => {
|
_ => {
|
||||||
info!(context, "got unsolicited response {:?}", response)
|
info!(context, "{folder:?}: got unsolicited response {response:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user