gitea/services/mailer
zeripath f6fd501841
Correct the fallbacks for mailer configuration (#21945)
Unfortunately the fallback configuration code for [mailer] that were
added in #18982 are incorrect. When you read a value from an ini section
that key is added. This leads to a failure of the fallback mechanism.
Further there is also a spelling mistake in the startTLS configuration.

This PR restructures the mailer code to first map the deprecated
settings on to the new ones - and then use ini.MapTo to map those on to
the struct with additional validation as necessary.

Ref #21744

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-27 10:08:40 +00:00
..
mail.go Add `context.Context` to more methods (#21546) 2022-11-19 16:12:33 +08:00
mail_comment.go Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
mail_issue.go Add `context.Context` to more methods (#21546) 2022-11-19 16:12:33 +08:00
mail_release.go Add `context.Context` to more methods (#21546) 2022-11-19 16:12:33 +08:00
mail_repo.go Add `context.Context` to more methods (#21546) 2022-11-19 16:12:33 +08:00
mail_team_invite.go Add team member invite by email (#20307) 2022-10-19 14:40:28 +02:00
mail_test.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
mailer.go Correct the fallbacks for mailer configuration (#21945) 2022-11-27 10:08:40 +00:00
mailer_test.go refactoring nits (#18188) 2022-01-05 07:27:53 +01:00
main_test.go Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00