feat: Revert "Don't fetch messages from unknown folders (#7190)"

This reverts commit 2260156c40. Some users still want to get messages
from all folders as reported by @gerryfrancis.
This commit is contained in:
iequidoo
2025-09-30 01:35:51 -03:00
parent c001a9a983
commit 275630d7c3
3 changed files with 6 additions and 17 deletions

View File

@@ -823,10 +823,7 @@ impl Session {
.context("listing folders for resync")?;
for folder in all_folders {
let folder_meaning = get_folder_meaning(&folder);
if !matches!(
folder_meaning,
FolderMeaning::Virtual | FolderMeaning::Unknown
) {
if folder_meaning != FolderMeaning::Virtual {
self.resync_folder_uids(context, folder.name(), folder_meaning)
.await?;
}

View File

@@ -74,7 +74,6 @@ impl Imap {
// Don't scan folders that are watched anyway
if !watched_folders.contains(&folder.name().to_string())
&& folder_meaning != FolderMeaning::Trash
&& folder_meaning != FolderMeaning::Unknown
{
self.fetch_move_delete(context, session, folder.name(), folder_meaning)
.await