Skip to content

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Sep 9, 2025

See commit messages.
Close #7178

@iequidoo iequidoo marked this pull request as draft September 9, 2025 11:41
@link2xt link2xt changed the title feat: Remove Config::SendboxWatch (#7178) feat: Remove Config::SentboxWatch (#7178) Sep 9, 2025
@iequidoo iequidoo marked this pull request as ready for review September 10, 2025 05:14
@iequidoo iequidoo requested review from link2xt and removed request for link2xt September 10, 2025 05:15
@iequidoo
Copy link
Collaborator Author

iequidoo commented Sep 10, 2025

Overall this is ready for review, but depends on chatmail/provider-db#322 (EDIT: already merged).
Not removing ConfiguredSentboxFolder yet, but probably want too. It doesn't complicate the code a lot, but probably won't be useful anymore. EDIT: It's used in fetch_existing_msgs():

        add_all_recipients_as_contacts(context, session, Config::ConfiguredSentboxFolder)
            .await
            .context("failed to get recipients from the sentbox")?;

...
We can remove ConfiguredSentboxFolder and tell users that they need to move/copy messages from Sentbox to Inbox so that Delta Chat adds all contacts from them. This way users will be also informed that Delta Chat needs users to CC/BCC/To themselves to see messages sent from other MUAs. EDIT: Done.

@iequidoo iequidoo force-pushed the iequidoo/rm-SentboxWatch branch 3 times, most recently from 1e94e06 to e9b13de Compare September 11, 2025 16:56
@iequidoo iequidoo marked this pull request as draft September 11, 2025 17:18
The motivation is to reduce code complexity, get rid of the extra IMAP connection and cases when
messages are added to chats by Inbox and Sentbox loops in parallel which leads to various message
sorting bugs, particularly to outgoing messages breaking sorting of incoming ones which are fetched
later, but may have a smaller "Date".
It's used in `fetch_existing_msgs()`, but we can remove it and tell users that they need to
move/copy messages from Sentbox to Inbox so that Delta Chat adds all contacts from them. This way
users will be also informed that Delta Chat needs users to CC/BCC/To themselves to see messages sent
from other MUAs.
@iequidoo iequidoo force-pushed the iequidoo/rm-SentboxWatch branch from e9b13de to c0b2f58 Compare September 11, 2025 17:29
@iequidoo iequidoo changed the title feat: Remove Config::SentboxWatch (#7178) feat: Remove Config::{SentboxWatch,ConfiguredSentboxFolder} (#7178) Sep 11, 2025
@iequidoo iequidoo marked this pull request as ready for review September 11, 2025 17:39
@iequidoo iequidoo requested review from link2xt and r10s September 11, 2025 17:39
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.

remove SentboxWatch
1 participant