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/mailer
zeripath bb0e2121a3
Try to prevent autolinking of displaynames by email readers (#19169) (#19183)
Backport #19169

Unfortunately many email readers will (helpfully) detect url or url-like names and
automatically create links to them, even in HTML emails. This is not ideal when
usernames can have dots in them.

This PR tries to prevent this behaviour by sticking ZWJ characters between dots and
also set the meta tag to prevent format detection.

Not every email template has been changed in this way - just the activation emails but
it may be that we should be setting the above meta tag in all of our emails too.

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
mail.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 3 years ago
mail_comment.go Move user related model into models/user (#17781) 3 years ago
mail_issue.go Do not send notification emails to inactive users (#19131) (#19139) 3 years ago
mail_release.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 3 years ago
mail_repo.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 3 years ago
mail_test.go Prevent merge messages from being sorted to the top of email chains (#18566) (#18588) 3 years ago
mailer.go Add option to convert CRLF to LF line endings for sendmail (#18075) 3 years ago
mailer_test.go refactoring nits (#18188) 3 years ago
main_test.go Decouple unit test code from business code (#17623) 3 years ago