Skip to content

Commit 9139e6b

Browse files
mercataemersion
authored andcommitted
imapserver: fix unquoted TAG in ESEARCH response
1 parent 17771fb commit 9139e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imapserver/search.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (c *Conn) writeESearch(tag string, data *imap.SearchData, options *imap.Sea
9898

9999
enc.Atom("*").SP().Atom("ESEARCH")
100100
if tag != "" {
101-
enc.SP().Special('(').Atom("TAG").SP().Atom(tag).Special(')')
101+
enc.SP().Special('(').Atom("TAG").SP().String(tag).Special(')')
102102
}
103103
if numKind == NumKindUID {
104104
enc.SP().Atom("UID")

0 commit comments

Comments
 (0)