Skip to content

Commit f750572

Browse files
committed
imap: add AuthCap
1 parent a3ee736 commit f750572

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

capability.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ var imap4rev2Caps = CapSet{
9191
CapStatusSize: {},
9292
}
9393

94+
// AuthCap returns the capability name for an SASL authentication mechanism.
95+
func AuthCap(mechanism string) Cap {
96+
return Cap("AUTH=" + mechanism)
97+
}
98+
9499
// CapSet is a set of capabilities.
95100
type CapSet map[Cap]struct{}
96101

0 commit comments

Comments
 (0)