comparison cmd/sievemgr/internal/config/parser.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
comparison
equal deleted inserted replaced
18:d14d93d011d7 19:854167f55839
90 if lit, err = p.scanType(tokenString); err != nil { 90 if lit, err = p.scanType(tokenString); err != nil {
91 break parsing 91 break parsing
92 } 92 }
93 acct = &Account{ 93 acct = &Account{
94 Name: lit, 94 Name: lit,
95 Port: "4190",
96 } 95 }
97 case "default": 96 case "default":
98 isDefault = true 97 isDefault = true
99 case "host": 98 case "host":
100 if lit, err = p.scanType(tokenString); err != nil { 99 if lit, err = p.scanType(tokenString); err != nil {