aboutsummaryrefslogtreecommitdiff
path: root/worker/types/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r--worker/types/messages.go9
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