Skip to content

Commit

Permalink
imap: add AuthCap
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Aug 28, 2023
1 parent a3ee736 commit f750572
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ var imap4rev2Caps = CapSet{
CapStatusSize: {},
}

// AuthCap returns the capability name for an SASL authentication mechanism.
func AuthCap(mechanism string) Cap {
return Cap("AUTH=" + mechanism)
}

// CapSet is a set of capabilities.
type CapSet map[Cap]struct{}

Expand Down

0 comments on commit f750572

Please sign in to comment.