]> source.dussan.org Git - gitea.git/commit
Drop "@" from email sender to avoid spam filters (#29109)
authorGwyneth Morgan <gwymor@tilde.club>
Sat, 10 Feb 2024 03:40:48 +0000 (03:40 +0000)
committerGitHub <noreply@github.com>
Sat, 10 Feb 2024 03:40:48 +0000 (04:40 +0100)
commit5b2fd0fc19a2a77414c8e2989b4794b6617221f5
tree21b2bbd0a805257a3ad1b211a81dc528841167e5
parentc1f7249056d4aa38927aebcbddc6459ee714c801
Drop "@" from email sender to avoid spam filters (#29109)

Commit 360b3fd17c (Include username in email headers (#28981),
2024-02-03) adds usernames to the From field of notification emails in
the form of `Display Name (@username)`, to prevent spoofing. However,
some email filtering software flags "@" in the display name part of the
From field as potential spoofing, as you could set the display name part
to another email address than the one you are sending from (e.g.
`From: "apparent@email-address" <actual@email-address>`). To avoid
being flagged, instead send emails from `Display Name (username)`.

Closes: #29107
---------

Co-authored-by: Giteabot <teabot@gitea.io>
models/user/user.go