forgejo/services/mailer
Gusted 8a1924b51a [PORT] Use FullName in Emails to address the recipient if possible (gitea#31527) (#4516)
Before we had just the plain mail address as recipient. But now we provide additional Information for the Mail clients.

---
Porting information:

- Two behavior changes are noted with this patch, the display name is now always quoted although in some scenarios unnecessary it's a safety precaution of Go. B encoding is used when certain characters are present as they aren't 'legal' to be used as a display name and Q encoding would still show them and B encoding needs to be used, this is now done by Go's `address.String()`.
- Update and add new unit tests.

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4516
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2024-07-17 05:13:59 +00:00
..
incoming Replace reply with a forked version to fix the cut-off of the incoming mail text (#3747) 2024-05-13 21:24:58 +00:00
token [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
mail.go [PORT] Use FullName in Emails to address the recipient if possible (gitea#31527) (#4516) 2024-07-17 05:13:59 +00:00
mail_admin_new_user.go Enable unparam linter (#31277) 2024-06-16 13:42:58 +02:00
mail_admin_new_user_test.go tests(services/mailer): refactor mail_admin_new_user_test 2024-05-19 08:54:25 +02:00
mail_comment.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mail_issue.go Clean up template locale usage (#27856) 2023-10-31 22:11:48 +08:00
mail_release.go [PORT] Use FullName in Emails to address the recipient if possible (gitea#31527) (#4516) 2024-07-17 05:13:59 +00:00
mail_repo.go [PORT] Use FullName in Emails to address the recipient if possible (gitea#31527) (#4516) 2024-07-17 05:13:59 +00:00
mail_team_invite.go Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
mail_test.go Merge pull request 'mailer: Switch X-Mailer to "Forgejo"' (#3931) from algernon/forgejo:mailer-detox into forgejo 2024-05-28 17:51:04 +00:00
mailer.go Add option for mailer to override mail headers (#27860) 2024-06-09 11:13:39 +02:00
mailer_test.go test(services/mailer): Add option for mailer to override mail headers 2024-06-09 11:13:39 +02:00
main_test.go tests(services/mailer): refactor mail_admin_new_user_test 2024-05-19 08:54:25 +02:00
notify.go [GITEA] notifies admins on new user registration 2024-02-05 16:09:28 +01:00