Skip to content

fix: send MDNs to self even if MDNs are disabled - #8578

Merged
link2xt merged 1 commit into
mainfrom
link2xt/always-send-mdn-to-self
Aug 13, 2026
Merged

fix: send MDNs to self even if MDNs are disabled#8578
link2xt merged 1 commit into
mainfrom
link2xt/always-send-mdn-to-self

Conversation

@link2xt

@link2xt link2xt commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

MDNs to self are used for seen status synhronization between devices.

Closes #8577

@link2xt
link2xt force-pushed the link2xt/always-send-mdn-to-self branch 2 times, most recently from 6fd8ad6 to 3a3f972 Compare August 13, 2026 09:57
@link2xt
link2xt marked this pull request as ready for review August 13, 2026 10:01
Comment thread src/smtp.rs
/// Tries to send a single MDN. Returns true if more MDNs should be sent.
async fn send_mdn(context: &Context, smtp: &mut Smtp) -> Result<bool> {
if !context.should_send_mdns().await? {
context.sql.execute("DELETE FROM smtp_mdns", []).await?;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Started by removing only non-self MDNs, but then removed the whole block. If the user disabled MDNs, it seems fine to send already queued MDNs and treat them as already sent.

MDNs to self are used for seen status synhronization between devices.
@link2xt
link2xt force-pushed the link2xt/always-send-mdn-to-self branch from 48a4e5b to 6d9cc9c Compare August 13, 2026 11:16
@link2xt
link2xt merged commit ec4d195 into main Aug 13, 2026
30 checks passed
@link2xt
link2xt deleted the link2xt/always-send-mdn-to-self branch August 13, 2026 11:36
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.

chat/messages read status not sync if MDN are disabled

2 participants