Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions imap/imap.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (c *Client) Expunge(uids *SeqSet) (cmd *Command, err error) {
// is the caller's responsibility to quote strings when necessary. All strings
// must use UTF-8 encoding.
func (c *Client) Search(spec ...Field) (cmd *Command, err error) {
return c.Send("SEARCH", append([]Field{"CHARSET", "UTF-8"}, spec...)...)
return c.Send("SEARCH", spec...)
}

// Fetch retrieves data associated with the specified message(s) in the mailbox.
Expand All @@ -374,7 +374,7 @@ func (c *Client) Copy(seq *SeqSet, mbox string) (cmd *Command, err error) {
// UIDSearch is identical to Search, but the numbers returned in the response
// are unique identifiers instead of message sequence numbers.
func (c *Client) UIDSearch(spec ...Field) (cmd *Command, err error) {
return c.Send("UID SEARCH", append([]Field{"CHARSET", "UTF-8"}, spec...)...)
return c.Send("UID SEARCH", spec...)
}

// UIDFetch is identical to Fetch, but the seq argument is interpreted as
Expand Down