mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
improve deprecation warning about localpart-only destinations a bit
it's still not great. better to automatically change domains.conf. but that would currently rewrite the whole file, which may not be what admins that manually edit expect, it would remove their comments. we need better config-update code. for issue #40
This commit is contained in:
parent
c2448e5adc
commit
785a38c8b0
1 changed files with 1 additions and 1 deletions
|
@ -1132,7 +1132,7 @@ func prepareDynamicConfig(ctx context.Context, dynamicPath string, static config
|
|||
if !ok {
|
||||
addErrorf("could not find localpart %q to replace with address in destinations", lp)
|
||||
} else {
|
||||
log.Error("deprecated: destination with localpart-only key will be removed in the future, replace it with a full email address, by appending the default domain", mlog.Field("localpart", lp), mlog.Field("address", addr), mlog.Field("account", accName))
|
||||
log.Error(`deprecation warning: support for account destination addresses specified as just localpart ("username") instead of full email address will be removed in the future; update domains.conf, for each Account, for each Destination, ensure each key is an email address by appending "@" and the default domain for the account`, mlog.Field("localpart", lp), mlog.Field("address", addr), mlog.Field("account", accName))
|
||||
acc.Destinations[addr] = dest
|
||||
delete(acc.Destinations, lp)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue