diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-29 22:35:53 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-29 22:36:15 -0400 |
commit | 77ede6eb5a22a5407541ac587736189fcca0037f (patch) | |
tree | 45627c15f7087f91ed9881e776a566d440bd878e /worker/types/messages.go | |
parent | 84e9853c1613f43f76bd46f0c1eb143d1db16ac2 (diff) |
Add body fetching support code
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r-- | worker/types/messages.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go index ff2c36b..f38bb22 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -2,10 +2,10 @@ package types import ( "crypto/x509" - "net/mail" "time" "github.com/emersion/go-imap" + "github.com/mohamedattahri/mail" "git.sr.ht/~sircmpwn/aerc2/config" ) @@ -123,11 +123,16 @@ type MessageInfo struct { Envelope *imap.Envelope Flags []string InternalDate time.Time - Mail *mail.Message Size uint32 Uid uint32 } +type MessageBody struct { + Message + Mail *mail.Message + Uid uint32 +} + type MessagesDeleted struct { Message Uids []uint32 |