You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
Gwyneth Morgan 360b3fd17c
Include username in email headers (#28981)
Emails from Gitea comments do not contain the username of the commenter
anywhere, only their display name, so it is not possible to verify who
made a comment from the email itself:

	From: "Alice" <email@gitea>
	X-Gitea-Sender: Alice
	X-Gitea-Recipient: Bob
	X-GitHub-Sender: Alice
	X-GitHub-Recipient: Bob

	This comment looks like it's from @alice.

The X-Gitea/X-GitHub headers also use display names, which is not very
reliable for filtering, and inconsistent with GitHub's behavior:

	X-GitHub-Sender: lunny
	X-GitHub-Recipient: gwymor

This change includes both the display name and username in the From
header, and switches the other headers from display name to username:

	From: "Alice (@fakealice)" <email@gitea>
	X-Gitea-Sender: fakealice
	X-Gitea-Recipient: bob
	X-GitHub-Sender: fakealice
	X-GitHub-Recipient: bob

	This comment looks like it's from @alice.
1 year ago
..
actions Add artifacts v4 jwt to job message and accept it (#28885) 1 year ago
agit Adjust object format interface (#28469) 1 year ago
asymkey Simplify how git repositories are opened (#28937) 1 year ago
attachment Even more `db.DefaultContext` refactor (#27352) 1 year ago
auth Fix SSPI user creation (#28948) 1 year ago
automerge Simplify how git repositories are opened (#28937) 1 year ago
context Another round of `db.DefaultContext` refactor (#27103) 1 year ago
convert Fix an actions schedule bug (#28942) 1 year ago
cron Update go dependencies (#28518) 1 year ago
doctor Simplify how git repositories are opened (#28937) 1 year ago
externalaccount Final round of `db.DefaultContext` refactor (#27587) 1 year ago
feed More `db.DefaultContext` refactor (#27265) 1 year ago
forms Remove trust model selection from repository creation on web page because it can be changed in settings later (#28814) 1 year ago
gitdiff Add option to disable ambiguous unicode characters detection (#28454) 1 year ago
indexer Fix missing issue search index update when changing status (#28325) 1 year ago
issue Remove deadcode under models/issues (#28536) 1 year ago
lfs Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
mailer Include username in email headers (#28981) 1 year ago
markup make writing main test easier (#27270) 1 year ago
migrations Simplify how git repositories are opened (#28937) 1 year ago
mirror Simplify how git repositories are opened (#28937) 1 year ago
notify Update status and code index after changing the default branch (#27018) 2 years ago
org Delete repos of org when purge delete user (#27273) 1 year ago
packages Fix some RPM registry flaws (#28782) 1 year ago
pull Simplify how git repositories are opened (#28937) 1 year ago
release Avoid sending update/delete release notice when it is draft (#29008) 1 year ago
repository Update tool dependencies (#29030) 1 year ago
secrets Refactor deletion (#28610) 1 year ago
task Fix incorrect ctx usage in defer function (#27740) 1 year ago
uinotification Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
user Forbid removing the last admin user (#28337) 1 year ago
webhook Abstract hash function usage (#28138) 1 year ago
wiki Fix an actions schedule bug (#28942) 1 year ago