mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 09:06:45 +00:00
GODT-1817: Port over missing IMAP copy feature test
This commit is contained in:
@ -46,7 +46,8 @@ type Message struct {
|
||||
CC string `bdd:"cc"`
|
||||
BCC string `bdd:"bcc"`
|
||||
|
||||
Unread bool `bdd:"unread"`
|
||||
Unread bool `bdd:"unread"`
|
||||
Deleted bool `bdd:"deleted"`
|
||||
}
|
||||
|
||||
func (msg Message) Build() []byte {
|
||||
@ -113,6 +114,7 @@ func newMessageFromIMAP(msg *imap.Message) Message {
|
||||
Attachments: strings.Join(xslices.Map(m.Attachments, func(att message.Attachment) string { return att.Name }), ", "),
|
||||
MessageID: msg.Envelope.MessageId,
|
||||
Unread: !slices.Contains(msg.Flags, imap.SeenFlag),
|
||||
Deleted: !slices.Contains(msg.Flags, imap.DeletedFlag),
|
||||
}
|
||||
|
||||
if len(msg.Envelope.From) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user