Mercurial > projects > sievemgr
diff cmd/sievemgr/internal/config/config_test.go @ 19:854167f55839
Fix SRV record lookup
Do not use a configuration file default value for port in order to detect when
it is not set by the user so that SRV record lookup is triggered.
Depend on version 0.8.1 of go.guido-berhoerster.org/managesieve which contains
an additional necessary fix.
author | Guido Berhoerster <guido+sievemgr@berhoerster.name> |
---|---|
date | Wed, 03 Feb 2021 13:34:44 +0100 |
parents | 4dff4c3f0fbb |
children |
line wrap: on
line diff
--- a/cmd/sievemgr/internal/config/config_test.go Tue Feb 02 23:57:37 2021 +0100 +++ b/cmd/sievemgr/internal/config/config_test.go Wed Feb 03 13:34:44 2021 +0100 @@ -50,7 +50,7 @@ } if conf.Accounts[0].Name != "foo" || conf.Accounts[0].Host != "imap.example.net" || - conf.Accounts[0].Port != "4190" || + conf.Accounts[0].Port != "" || conf.Accounts[0].User != "bar@example.net" || conf.Accounts[0].Password != "53cRe7" || conf.Accounts[0].Insecure {