Skip to content

Commit

Permalink
fetch/search: ensure field names are Atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
rakoo committed Feb 1, 2024
1 parent f789966 commit 3f3b661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imapclient/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func writeFetchItemBodySection(enc *imapwire.Encoder, item *imap.FetchItemBodySe

if len(headerList) > 0 {
enc.SP().List(len(headerList), func(i int) {
enc.String(headerList[i])
// This should be a string, but some servers don't recognize that
enc.Atom(headerList[i])
})
}
}
Expand Down

0 comments on commit 3f3b661

Please sign in to comment.