about summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/imap/fetch.go2
-rw-r--r--worker/types/messages.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index e3d8fa3..c5e7cd6 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -26,7 +26,7 @@ func (imapw *IMAPWorker) handleFetchMessageBodyPart(
 
 	imapw.worker.Logger.Printf("Fetching message part")
 	section := &imap.BodySectionName{}
-	section.Path = []int{msg.Part + 1}
+	section.Path = msg.Part
 	items := []imap.FetchItem{section.FetchItem()}
 	uids := imap.SeqSet{}
 	uids.AddNum(msg.Uid)
diff --git a/worker/types/messages.go b/worker/types/messages.go
index 555e3ce..0169e05 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -94,7 +94,7 @@ type FetchFullMessages struct {
 type FetchMessageBodyPart struct {
 	Message
 	Uid  uint32
-	Part int
+	Part []int
 }
 
 type DeleteMessages struct {