diff 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
line wrap: on
line diff
--- a/cmd/sievemgr/common.go	Wed Feb 03 13:49:51 2021 +0100
+++ b/cmd/sievemgr/common.go	Wed Feb 17 07:50:55 2021 +0100
@@ -129,7 +129,7 @@
 		}
 	}
 
-	auth := managesieve.PlainAuth("", acct.User, acct.Password, acct.Host)
+	auth := managesieve.PlainAuth(authzID, acct.User, acct.Password, acct.Host)
 	if err := c.Authenticate(auth); err != nil {
 		return nil, fmt.Errorf("failed to authenticate user %s: %s",
 			acct.User, err)