Skip to content

Commit 21ff41a

Browse files
committed
imapserver: add support for RFC822.PEEK
This is still used by Outlook: https://learn.microsoft.com/en-us/openspecs/exchange_standards/ms-stanoimap/8e9492b1-b812-4a1a-93ea-4d69489eb5cd Closes: #657
1 parent 1a15e07 commit 21ff41a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imapserver/fetch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ func handleFetchAtt(dec *imapwire.Decoder, attName string, options *imap.FetchOp
112112
bs := &imap.FetchItemBodySection{}
113113
writerOptions.obsolete[bs] = attName
114114
options.BodySection = append(options.BodySection, bs)
115+
case "RFC822.PEEK": // obsolete, equivalent to BODY.PEEK[], used by Outlook
116+
bs := &imap.FetchItemBodySection{Peek: true}
117+
writerOptions.obsolete[bs] = attName
118+
options.BodySection = append(options.BodySection, bs)
115119
case "RFC822.HEADER": // equivalent to BODY.PEEK[HEADER]
116120
bs := &imap.FetchItemBodySection{
117121
Specifier: imap.PartSpecifierHeader,

0 commit comments

Comments
 (0)