forgejo/services
zeripath 888384a631
Correct the fallbacks for mailer configuration () ()
Backport 

Unfortunately the fallback configuration code for [mailer] that were
added in  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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-27 19:45:59 +00:00
..
agit Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
asymkey
attachment Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
auth Revert unrelated changes for SMTP auth () () 2022-11-10 16:11:56 -05:00
automerge
comments
context
cron Refactor git command arguments and make all arguments to be safe to be used () 2022-10-23 22:44:45 +08:00
externalaccount
forms Revert unrelated changes for SMTP auth () () 2022-11-10 16:11:56 -05:00
gitdiff Refactor git command arguments and make all arguments to be safe to be used () 2022-10-23 22:44:45 +08:00
issue Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
lfs
mailer Correct the fallbacks for mailer configuration () () 2022-11-27 19:45:59 +00:00
markup
migrations Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
mirror Refactor git command arguments and make all arguments to be safe to be used () 2022-10-23 22:44:45 +08:00
org Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
packages
pull Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
release Revert "Do not send notifications for draft releases ()" () 2022-10-26 00:00:00 +02:00
repository Fix repository adoption on Windows () () 2022-11-01 22:32:03 +00:00
task Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
user Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
webhook Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00
wiki Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) () 2022-10-24 20:29:17 +01:00