aboutsummaryrefslogtreecommitdiff
path: root/worker/imap/fetch.go
diff options
context:
space:
mode:
authorYash Srivastav <yash111998@gmail.com>2019-06-08 10:52:41 +0530
committerDrew DeVault <sir@cmpwn.com>2019-06-08 10:58:51 -0400
commit06e1b45a7851b58ea0d238f1fbfa2e8cee7bba8f (patch)
tree64300714ccccfa26f24d4e1cf20d58b264dcb8a6 /worker/imap/fetch.go
parent6b7da37235092f2500de8354030b58d0cc7a25ef (diff)
Fetch headers w/peek to leave emails unread
Diffstat (limited to 'worker/imap/fetch.go')
-rw-r--r--worker/imap/fetch.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index 49c9ac5..2d5bb7f 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -19,6 +19,7 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders(
BodyPartName: imap.BodyPartName{
Specifier: imap.HeaderSpecifier,
},
+ Peek: true,
}
items := []imap.FetchItem{