Skip to content

Commit 939e6cc

Browse files
authored
Merge branch 'v2' into sort
2 parents f2fdf37 + 21ff41a commit 939e6cc

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)