Skip to content

Extend MvboxMove meaning (and maybe rename Config::OnlyFetchMvbox to OnlyScanSpam later) #7187

@iequidoo

Description

@iequidoo

SentboxWatch is to be removed: #7178 . Then if we look at imap::should_ignore_folder(), OnlyFetchMvbox actually keeps scanning "Spam" (so the current naming isn't quite correct). Mvbox ("DeltaChat") is watched anyway if it exists (e.g. for chatmail it doesn't).

MvboxMove ("Move automatically to DeltaChat folder") makes no sense with OnlyFetchMvbox enabled: useful messages from "Spam" are moved anyway to "DeltaChat" (see imap::spam_target_folder_cfg()) and Inbox messages aren't fetched and moved. Then with OnlyScanSpam, MvboxMove could 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 is unachievable currently 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" should be disabled in a migration to not cause watching Inbox. EDIT: This isn't possible at all in the UIs currently, so the migration isn't needed. Also implementation in Core doesn't break any UI, so the UIs may be tweaked later.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions