Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not require the Message to render MDN #5712

Merged
merged 1 commit into from
Jun 23, 2024
Merged

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Jun 21, 2024

Primary change is in the types, moving Mimefactory.Message into Loaded::Message variant.
The rest is fighting borrow checker.

Fixes #5710

@link2xt link2xt force-pushed the link2xt/mdn-no-message branch 4 times, most recently from 90aa446 to e136f20 Compare June 21, 2024 14:54
@link2xt link2xt requested a review from iequidoo June 21, 2024 14:54
@link2xt link2xt marked this pull request as ready for review June 21, 2024 14:54
@link2xt
Copy link
Collaborator Author

link2xt commented Jun 21, 2024

SMTP errors while sending MDN will no longer result in a "red exclamation mark" on the message, but not a big deal I guess, maybe it is even better this way.

Copy link
Collaborator

@iequidoo iequidoo left a comment

Choose a reason for hiding this comment

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

A bit difficult to review because of the huge refactoring, but conceptually looks good

@link2xt link2xt force-pushed the link2xt/mdn-no-message branch 3 times, most recently from d692700 to b17f913 Compare June 22, 2024 01:24
src/stock_str.rs Outdated
translated(context, StockMessage::ReadRcptMailBody)
.await
.replace1(message)
/// Stock string: `This message is a return receipt.`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be This message is a receipt notification.

@link2xt link2xt merged commit a82eb7d into main Jun 23, 2024
37 checks passed
@link2xt link2xt deleted the link2xt/mdn-no-message branch June 23, 2024 04:25
r10s added a commit that referenced this pull request Jul 26, 2024
while adapting strings for the recent change about read receipts,
#5712 ,
it turns out in discussions eg. at deltachat/deltachat-android#3179
that untranslated english for the read receipts seem to be sufficient or even better:

- do not reveal the sender's language
- unexpected languages are confusing - even if you chat in english,
  you may get Chinese read receipts
- many clients do not show the text anyways,
  iirc, eg. Outlook display the read receipts in context,
  and Delta Chat of course as well
r10s added a commit that referenced this pull request Jul 26, 2024
while adapting strings for the recent change about read receipts,
#5712 ,
it turns out in discussions eg. at deltachat/deltachat-android#3179
that untranslated english for the read receipts seem to be sufficient or even better:

- do not reveal the sender's language
- unexpected languages are confusing - even if you chat in english,
  you may get Chinese read receipts
- many clients do not show the text anyways,
  iirc, eg. Outlook display the read receipts in context,
  and Delta Chat of course as well
r10s added a commit that referenced this pull request Jul 26, 2024
while adapting strings for the recent change about read receipts,
#5712 , it turns
out in discussions eg. at
deltachat/deltachat-android#3179 that
untranslated english for the read receipts seem to be sufficient or even
better:

- do not reveal the sender's language
- unexpected languages are confusing - even if you chat in english, you
may get Chinese read receipts
- many clients do not show the text anyways, iirc, eg. Outlook display
the read receipts in context, and Delta Chat of course as well
- afaik, we're leaving comparable `multipart/report` untranslated as
well (sync, but also webxdc updates are practically english only)
- less code, fewer translations needed :)
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.

failure to send read receipt if message is deleted after markseen is called
2 participants