-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Gmail sorting problem with PR emails in 1.16.0 #18560
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
Comments
I think it would be useful to see the Message-IDs and the In-Reply-To here. I suspect that the problem is that the merged message doesn't have the correct In-Reply-To or even Message-ID |
yup it looks like the message-id for the merged notification is: Message-ID: parnic-sks/pr-email-test/pulls/[email protected] |
Whereas for the comments it looks like: Message-ID: parnic-sks/pr-email-test/pulls/1/comment/[email protected] |
So Gmail will call the comments as replies to the the merged notification and will reorder things... Clearly this is not ideal. Anything that comes through:
will get the same id. so we need to change:
to take account of these different actiontypes |
Gitea will currrently resend the same message-id for the closed/merged/reopened messages for issues. This will cause the merged message to leap to the top of an email chain and become out of sync. This PR adds specific suffices for these actions. Fix go-gitea#18560 Signed-off-by: Andrew Thornton <[email protected]>
…18566) * Prevent merge messages from being sorted to the top of email chains Gitea will currrently resend the same message-id for the closed/merged/reopened messages for issues. This will cause the merged message to leap to the top of an email chain and become out of sync. This PR adds specific suffices for these actions. Fix #18560 Signed-off-by: Andrew Thornton <[email protected]> * add test Signed-off-by: Andrew Thornton <[email protected]>
…o-gitea#18566) Backport go-gitea#18566 Gitea will currrently resend the same message-id for the closed/merged/reopened messages for issues. This will cause the merged message to leap to the top of an email chain and become out of sync. This PR adds specific suffices for these actions. Fix go-gitea#18560 Signed-off-by: Andrew Thornton <[email protected]>
…18566) (#18588) Backport #18566 Gitea will currrently resend the same message-id for the closed/merged/reopened messages for issues. This will cause the merged message to leap to the top of an email chain and become out of sync. This PR adds specific suffices for these actions. Fix #18560 Signed-off-by: Andrew Thornton <[email protected]>
…o-gitea#18566) * Prevent merge messages from being sorted to the top of email chains Gitea will currrently resend the same message-id for the closed/merged/reopened messages for issues. This will cause the merged message to leap to the top of an email chain and become out of sync. This PR adds specific suffices for these actions. Fix go-gitea#18560 Signed-off-by: Andrew Thornton <[email protected]> * add test Signed-off-by: Andrew Thornton <[email protected]>
Gitea Version
1.16.0
Git Version
2.35.0
Operating System
Ubuntu 20.04.3, aarch64/arm64
How are you running Gitea?
Built myself from tag v1.16.0
Also reproducible on https://try.gitea.io/
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Description
This PR on try.gitea.io has the "merged" notification sorted above all other emails in the PR thread (see screenshot below). It also happens on our private instance. PR email threads are confusing to read as a result.
This was not a problem in 1.15.10; messages were previously sorted in chronological order.
Possibly related: #17206, #17900 ?
Repro was:
Screenshots
Despite the "merged" email having a later timestamp, it is displayed as the first message in the thread on Gmail:

The text was updated successfully, but these errors were encountered: