forked from Silverfish/proton-bridge
fix(GODT-2337): filter reply-to on draft.
This commit is contained in:
@ -43,10 +43,11 @@ type Message struct {
|
||||
MessageID string `bdd:"message-id"`
|
||||
Date string `bdd:"date"`
|
||||
|
||||
From string `bdd:"from"`
|
||||
To string `bdd:"to"`
|
||||
CC string `bdd:"cc"`
|
||||
BCC string `bdd:"bcc"`
|
||||
From string `bdd:"from"`
|
||||
To string `bdd:"to"`
|
||||
CC string `bdd:"cc"`
|
||||
BCC string `bdd:"bcc"`
|
||||
ReplyTo string `bdd:"reply-to"`
|
||||
|
||||
Unread bool `bdd:"unread"`
|
||||
Deleted bool `bdd:"deleted"`
|
||||
@ -158,6 +159,10 @@ func newMessageFromIMAP(msg *imap.Message) Message {
|
||||
message.BCC = msg.Envelope.Bcc[0].Address()
|
||||
}
|
||||
|
||||
if len(msg.Envelope.ReplyTo) > 0 {
|
||||
message.ReplyTo = msg.Envelope.ReplyTo[0].Address()
|
||||
}
|
||||
|
||||
return message
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user