comparison cmd/sievemgr/common.go @ 22:fc5e6970a0d5 default tip

Add support for specifying an authorization identity on the command line
author Guido Berhoerster <guido+sievemgr@berhoerster.name>
date Wed, 17 Feb 2021 07:50:55 +0100
parents 29769b9e2f09
children
comparison
equal deleted inserted replaced
21:ad5f548e3b10 22:fc5e6970a0d5
127 fmt.Errorf("failed to start TLS connection: %s", 127 fmt.Errorf("failed to start TLS connection: %s",
128 err) 128 err)
129 } 129 }
130 } 130 }
131 131
132 auth := managesieve.PlainAuth("", acct.User, acct.Password, acct.Host) 132 auth := managesieve.PlainAuth(authzID, acct.User, acct.Password, acct.Host)
133 if err := c.Authenticate(auth); err != nil { 133 if err := c.Authenticate(auth); err != nil {
134 return nil, fmt.Errorf("failed to authenticate user %s: %s", 134 return nil, fmt.Errorf("failed to authenticate user %s: %s",
135 acct.User, err) 135 acct.User, err)
136 } 136 }
137 137