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 888384a631
Correct the fallbacks for mailer configuration (#21945) (#21953)
Backport #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>
2 years ago
..
mail.go Move some files into models' sub packages (#20262) 3 years ago
mail_comment.go Add generic set type (#21408) 2 years ago
mail_issue.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
mail_release.go Add team member invite by email (#20307) 2 years ago
mail_repo.go Refactor `i18n` to `locale` (#20153) 3 years ago
mail_team_invite.go Add team member invite by email (#20307) 2 years ago
mail_test.go Move some files into models' sub packages (#20262) 3 years ago
mailer.go Correct the fallbacks for mailer configuration (#21945) (#21953) 2 years ago
mailer_test.go refactoring nits (#18188) 3 years ago
main_test.go Use a struct as test options (#19393) 3 years ago