Skip to content

Conversation

iequidoo
Copy link
Collaborator

Close #7187
See commit messages. This is an alternative to #7200 made after @gerryfrancis's report that it breaks their use case. Python tests can be fixed up if we decide to merge this. feat: Enable OnlyFetchMvbox by default (#7190) here is to preserve the default behavior of #7200.

I'd vote for this change set, it only adds a couple of LOCs + two migrations. DC Desktop only needs to allow setting both options independently, DC Android already allows this. UI's option descriptions may be adjusted later, these are advanced settings and mostly the descriptions remain correct.

This reverts commit 2260156. Some users still want to get messages
from all folders as reported by @gerryfrancis.
@iequidoo iequidoo marked this pull request as draft September 30, 2025 18:36
If `OnlyFetchMvbox` is enabled, `MvboxMove` ("Move automatically to DeltaChat folder") makes no
sense: useful messages from "Spam" are moved anyway to "DeltaChat" (see
`imap::spam_target_folder_cfg()`) and Inbox messages aren't fetched and moved. Then `MvboxMove` can
mean "Move Inbox and all scanned folders' messages to DeltaChat", so if it's enabled, Inbox is
watched too, so the user can configure fetching only from "Inbox", "DeltaChat" and "Spam" which was
unachievable before and helps e.g. for the Gmail case which has many virtual folders and the whole
folder scanning process is really slow (and useless for most users):
#7178 (comment). This may also be useful if the
user has another messenger, e.g. a Delta Chat fork who moves messages to "ZetaChat": this folder
shouldn't be scanned, but Inbox should be. Mvbox is watched anyway, this should just be made clear
to users (if not already).

For existing users accidentally having both options enabled "MvboxMove" is disabled in a migration
to not cause watching Inbox.

Having both options disabled means that we don't separate chat messages from non-chat ones, scanning
all folders is fine in this case.
This is a replacement for 2260156 "feat: Don't fetch messages from
unknown folders", but limited to the case with `MvboxMove` enabled. It's enabled by default, so most
users still gain from not fetching messages from unknown folders.
@iequidoo iequidoo force-pushed the iequidoo/always-fetch-inbox-on-mvbox_move branch from 3d8483d to 851b479 Compare October 1, 2025 04:48
@iequidoo iequidoo marked this pull request as ready for review October 1, 2025 04:52
@iequidoo iequidoo requested a review from link2xt October 1, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend MvboxMove meaning (and maybe rename Config::OnlyFetchMvbox to OnlyScanSpam later)
1 participant