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
@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
@Hocuri
Copy link
Collaborator

Hocuri commented Oct 13, 2025

Let's merge this only after we have stable releases with calls, in order not to require any UI changes.

Copy link
Collaborator

@link2xt link2xt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a rebase, but otherwise it can be merged already. There are calls releases already.

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 c0b2f58 to a65e47d Compare October 26, 2025 16:59
@iequidoo iequidoo merged commit a06ba35 into main Oct 26, 2025
30 checks passed
@iequidoo iequidoo deleted the iequidoo/rm-SentboxWatch branch October 26, 2025 17:17
link2xt added a commit to deltachat/deltachat-desktop that referenced this pull request Oct 26, 2025
It is going to be removed in the next core release:
<chatmail/core#7189>
link2xt added a commit to deltachat/deltachat-desktop that referenced this pull request Oct 27, 2025
It is going to be removed in the next core release:
<chatmail/core#7189>
link2xt added a commit to deltachat/deltachat-desktop that referenced this pull request Oct 27, 2025
It is going to be removed in the next core release:
<chatmail/core#7189>
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

4 participants