summary refs log tree commit diff stats
path: root/worker/imap/fetch.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-31 11:10:10 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-31 11:10:10 -0400
commit1f23868652a2ce0e81bddd048e3e828efaff2d69 (patch)
tree9d7fd0362d7b43df2d674ac2ad17b79e2c2196a9 /worker/imap/fetch.go
parent5d0402aeea1dcc69adb46227ab1cd73b5e768880 (diff)
downloadaerc-1f23868652a2ce0e81bddd048e3e828efaff2d69.tar.gz
Pull BodyStructure up from IMAP worker
Diffstat (limited to 'worker/imap/fetch.go')
-rw-r--r--worker/imap/fetch.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go
index 884ab73..d229126 100644
--- a/worker/imap/fetch.go
+++ b/worker/imap/fetch.go
@@ -12,6 +12,7 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders(
 
 	imapw.worker.Logger.Printf("Fetching message headers")
 	items := []imap.FetchItem{
+		imap.FetchBodyStructure,
 		imap.FetchEnvelope,
 		imap.FetchInternalDate,
 		imap.FetchFlags,
@@ -57,10 +58,11 @@ func (imapw *IMAPWorker) handleFetchMessages(
 					}, nil)
 				} else {
 					imapw.worker.PostMessage(&types.MessageInfo{
-						Envelope:     _msg.Envelope,
-						Flags:        _msg.Flags,
-						InternalDate: _msg.InternalDate,
-						Uid:          _msg.Uid,
+						BodyStructure: _msg.BodyStructure,
+						Envelope:      _msg.Envelope,
+						Flags:         _msg.Flags,
+						InternalDate:  _msg.InternalDate,
+						Uid:           _msg.Uid,
 					}, nil)
 				}
 			}