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/models
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 Fix incorrect action duration time when rerun the job before executed once (#28364) 1 year ago
activities Revert "Speed up loading the dashboard on mysql/mariadb (#28546)" (#29006) 1 year ago
admin Next round of `db.DefaultContext` refactor (#27089) 1 year ago
asymkey Update tool dependencies (#29030) 1 year ago
auth Move more functions to db.Find (#28419) 1 year ago
avatars Refactor some legacy code and remove unused code (#28622) 1 year ago
db Fix joins in `db.Find(AndCount)` (#28978) 1 year ago
dbfs make writing main test easier (#27270) 1 year ago
fixtures Fix reverting a merge commit failing (#28794) 1 year ago
git Add support for sha256 repositories (#23894) 1 year ago
issues Simplify how git repositories are opened (#28937) 1 year ago
migrations Add support for sha256 repositories (#23894) 1 year ago
organization Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
packages Fix some RPM registry flaws (#28782) 1 year ago
perm Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
project Fix comment permissions (#28213) 1 year ago
pull Add support for sha256 repositories (#23894) 1 year ago
repo Simplify how git repositories are opened (#28937) 1 year ago
secret Use db.Find instead of writing methods for every object (#28084) 1 year ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Refactor deletion (#28610) 1 year ago
unit Make actions default enabled for newly created repository if global configuraion enabled (#27482) 1 year ago
unittest Upgrade xorm (#27673) 1 year ago
user Include username in email headers (#28981) 1 year ago
webhook Refactor deletion (#28610) 1 year ago
error.go Forbid removing the last admin user (#28337) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
org.go Refactor deletion (#28610) 1 year ago
org_team.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
org_test.go Replace more db.DefaultContext (#27628) 1 year ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 1 year ago