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>
2022-03-23 15:18:11 +02:00
..
mail_comment.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
mail_issue.go Do not send notification emails to inactive users (#19131) (#19139) 2022-03-19 18:33:32 +00:00
mail_release.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 2022-03-23 15:18:11 +02:00
mail_repo.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 2022-03-23 15:18:11 +02:00
mail_test.go Prevent merge messages from being sorted to the top of email chains (#18566) (#18588) 2022-02-04 08:30:36 +00:00
mail.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 2022-03-23 15:18:11 +02:00
mailer_test.go refactoring nits (#18188) 2022-01-05 07:27:53 +01:00
mailer.go Add option to convert CRLF to LF line endings for sendmail (#18075) 2022-01-06 01:43:45 +01:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00