mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
GODT-1433 Message.Type is deprecated, use Flags instead.
This commit is contained in:
@ -108,16 +108,15 @@ func thereAreMessagesInMailboxesForAddressOfUser(mailboxNames, bddAddressID, bdd
|
||||
|
||||
if message.HasLabelID(pmapi.SentLabel) {
|
||||
message.Flags |= pmapi.FlagSent
|
||||
message.Type = pmapi.MessageTypeSent
|
||||
} else {
|
||||
// some tests (Outlook move by DELETE EXPUNGE APPEND) imply creating hard copies of emails,
|
||||
// and the importMessage() function flags the email as Sent if the 'Received' key in not present in the
|
||||
// header.
|
||||
header.Add("Received", "from dummy.protonmail.com")
|
||||
message.Flags |= pmapi.FlagReceived
|
||||
}
|
||||
|
||||
if message.HasLabelID(pmapi.DraftLabel) {
|
||||
message.Type = pmapi.MessageTypeDraft
|
||||
message.Flags = pmapi.FlagInternal | pmapi.FlagE2E
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user