diff options
Diffstat (limited to 'worker/imap/fetch.go')
-rw-r--r-- | worker/imap/fetch.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go index 79c9148b..3b9c7862 100644 --- a/worker/imap/fetch.go +++ b/worker/imap/fetch.go @@ -94,6 +94,7 @@ func (imapw *IMAPWorker) handleFetchMessageBodyPart( partBodySection.Specifier = imap.TextSpecifier } partBodySection.Path = msg.Part + partBodySection.Peek = true items := []imap.FetchItem{ imap.FetchEnvelope, @@ -150,7 +151,9 @@ func (imapw *IMAPWorker) handleFetchFullMessages( msg *types.FetchFullMessages, ) { logging.Infof("Fetching full messages: %v", msg.Uids) - section := &imap.BodySectionName{} + section := &imap.BodySectionName{ + Peek: true, + } items := []imap.FetchItem{ imap.FetchEnvelope, imap.FetchFlags, |