From 511fea39449b6db551151da86d914bf7ab3b3713 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 20 May 2019 16:42:44 -0400 Subject: Flesh out multipart switcher --- worker/imap/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker/imap') 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) -- cgit 1.4.1-2-gfad0