mirror of
https://github.com/chatmail/core.git
synced 2026-05-11 19:06:29 +03:00
4 more debug statements
This commit is contained in:
@@ -515,6 +515,7 @@ impl Imap {
|
|||||||
watch_folder: &str,
|
watch_folder: &str,
|
||||||
folder_meaning: FolderMeaning,
|
folder_meaning: FolderMeaning,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
info!(context, "dbg 2");
|
||||||
if !context.sql.is_open().await {
|
if !context.sql.is_open().await {
|
||||||
// probably shutdown
|
// probably shutdown
|
||||||
bail!("IMAP operation attempted while it is torn down");
|
bail!("IMAP operation attempted while it is torn down");
|
||||||
@@ -551,6 +552,7 @@ impl Imap {
|
|||||||
folder: &str,
|
folder: &str,
|
||||||
folder_meaning: FolderMeaning,
|
folder_meaning: FolderMeaning,
|
||||||
) -> Result<bool> {
|
) -> Result<bool> {
|
||||||
|
info!(context, "dbg 3");
|
||||||
if should_ignore_folder(context, folder, folder_meaning).await? {
|
if should_ignore_folder(context, folder, folder_meaning).await? {
|
||||||
info!(context, "Not fetching from {folder:?}.");
|
info!(context, "Not fetching from {folder:?}.");
|
||||||
session.new_mail = false;
|
session.new_mail = false;
|
||||||
@@ -562,6 +564,7 @@ impl Imap {
|
|||||||
.await
|
.await
|
||||||
.with_context(|| format!("Failed to select folder {folder:?}"))?;
|
.with_context(|| format!("Failed to select folder {folder:?}"))?;
|
||||||
if !folder_exists {
|
if !folder_exists {
|
||||||
|
info!(context, "dbg 4");
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -567,6 +567,7 @@ async fn fetch_idle(
|
|||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.context("idle")?;
|
.context("idle")?;
|
||||||
|
info!(ctx, "dbg 1");
|
||||||
|
|
||||||
Ok(session)
|
Ok(session)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user