Skip to content

Commit

Permalink
turns out the esearch tag is a string before imap4rev2, so can't blam…
Browse files Browse the repository at this point in the history
…e new outlook
  • Loading branch information
mjl- committed Nov 22, 2023
1 parent 2ae121e commit 9d2e761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imapserver/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ 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 {
// 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.
// The tag was originally a string, became an astring in IMAP4rev2, better stick to
// string. ../rfc/4466:707 ../rfc/5259:1163 ../rfc/9051:7087
resp := fmt.Sprintf(`* ESEARCH (TAG "%s")`, tag)
if isUID {
resp += " UID"
Expand Down

0 comments on commit 9d2e761

Please sign in to comment.