work around bug in microsoft outlook "new", which fails when the tag in an esearch response doesn't have quotes

This commit is contained in:
Mechiel Lukkien 2023-11-22 21:51:04 +01:00
parent 91b7d3dda8
commit 2ae121e400
No known key found for this signature in database

View file

@ -221,7 +221,9 @@ func (c *conn) cmdxSearch(isUID bool, tag, cmd string, p *parser) {
// No untagged ESEARCH response if nothing was requested. ../rfc/9051:4160
if len(eargs) > 0 {
resp := fmt.Sprintf("* ESEARCH (TAG %s)", tag)
// Microsoft Outlook "new" (Microsoft Office 365/15.20.7025.17) seems to fail when
// the tag value doesn't have double quotes. These quotes are optional.
resp := fmt.Sprintf(`* ESEARCH (TAG "%s")`, tag)
if isUID {
resp += " UID"
}