Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedBackend = errors.New("i18nlevel: backend not supported")
)
Functions ¶
func NewExtension ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ActiveComparator ¶
ActiveComparator returns the active comparator used.
This command is valid only if I18NLevel() returns 2. See RFC 5255 for details.
type ComparatorCmd ¶
type ComparatorCmd struct {
Comparators []string
}
The COMPARATOR command. See RFC 5255 Section 4.7.
func (*ComparatorCmd) Command ¶
func (cmd *ComparatorCmd) Command() *imap.Command
func (*ComparatorCmd) Parse ¶
func (cmd *ComparatorCmd) Parse(fields []interface{}) error
type ComparatorHandler ¶
type ComparatorHandler struct {
ComparatorCmd
}
type Comparators ¶
The COMPARATORS response. See RFC 5255 Section 4.8.
func (*Comparators) Format ¶
func (rs *Comparators) Format() (fields []interface{})
func (*Comparators) Handle ¶
func (rs *Comparators) Handle(resp imap.Resp) error
func (*Comparators) Parse ¶
func (rs *Comparators) Parse(fields []interface{}) error
func (*Comparators) WriteTo ¶
func (rs *Comparators) WriteTo(w *imap.Writer) error
type User ¶
type User interface { // UseComparator changes active comparator for the session. // // cmps is a non-empty list of comparators client wishes to use in the // preference order. The backend selects the first supported comparator and // changes the active session comparator to it. The return value contains // the identifier of selected comparator. And a list of comparators which // matches any of the arguments to the COMPARATOR command and is present // only if more than one match is found. // // Special value "default" refers to the comparator that is used when no // UseComparator is called. Note that with I18NLevel() == 2, the default // comparator SHOULD be "i;unicode-casemap". UseComparator(cmps []string) (string, []string, error) // ActiveComparator returns the currently active comparator for the // session. ActiveComparator() string }
Click to show internal directories.
Click to hide internal directories.