Skip to content

fix: create_send_msg_jobs: Don't pass message ID to smtp when resending to new broadcast members#8155

Open
iequidoo wants to merge 1 commit intomainfrom
iequidoo/fix-races-with-resending
Open

fix: create_send_msg_jobs: Don't pass message ID to smtp when resending to new broadcast members#8155
iequidoo wants to merge 1 commit intomainfrom
iequidoo/fix-races-with-resending

Conversation

@iequidoo
Copy link
Copy Markdown
Collaborator

@iequidoo iequidoo commented Apr 22, 2026

Follow-up to 970222f. When resending to new broadcast members, we shouldn't update the message db
entry and also share the message id with existing SMTP jobs:

  • Otherwise the behavior would depend on timings which isn't good.
  • If the message sending failed, resending it to a new member shalln't make it OutDelivered.

TODO: Update commit message.

@iequidoo iequidoo marked this pull request as ready for review April 22, 2026 18:59
@iequidoo iequidoo requested review from Hocuri and r10s April 22, 2026 19:01
@iequidoo iequidoo changed the title fix: create_send_msg_jobs: Avoid races with resending to new broadcast members fix: create_send_msg_jobs: Don't pass message ID to smtp Apr 23, 2026
Follow-up to 970222f. When resending to new broadcast members, we shouldn't update the message db
entry and also share the message id with existing SMTP jobs:
- Otherwise the behavior would depend on timings which isn't good.
- If the message sending failed, resending it to a new member shalln't make it `OutDelivered`.
@iequidoo iequidoo force-pushed the iequidoo/fix-races-with-resending branch from 0571c55 to 0845850 Compare April 23, 2026 16:15
@iequidoo iequidoo changed the title fix: create_send_msg_jobs: Don't pass message ID to smtp fix: create_send_msg_jobs: Don't pass message ID to smtp when resending to new broadcast members Apr 23, 2026
@iequidoo
Copy link
Copy Markdown
Collaborator Author

iequidoo commented May 4, 2026

Not clear if this should be added to https://github.com/orgs/deltachat/projects/92/views/1 because we should "get channels out of experimental" and this fixes a regression in channels, but it seems to only happen in a fail scenario. Cc @r10s

@iequidoo iequidoo requested a review from link2xt May 4, 2026 16:00
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.

1 participant