Skip to content

Commit 603e8fa

Browse files
committed
fetch: ensure field names are Atoms
1 parent f789966 commit 603e8fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imapclient/fetch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ func writeFetchItemBodySection(enc *imapwire.Encoder, item *imap.FetchItemBodySe
101101

102102
if len(headerList) > 0 {
103103
enc.SP().List(len(headerList), func(i int) {
104-
enc.String(headerList[i])
104+
// This should be a string, but some servers don't recognize that
105+
enc.Atom(headerList[i])
105106
})
106107
}
107108
}

0 commit comments

Comments
 (0)