Other Improved tests in move_without_support

This commit is contained in:
Xavier Michelon
2021-09-23 09:53:32 +02:00
committed by Jakub Cuth
parent 39bccc2747
commit a4a29cbf82
2 changed files with 40 additions and 46 deletions

View File

@ -101,6 +101,11 @@ func thereAreMessagesInMailboxesForAddressOfUser(mailboxNames, bddAddressID, bdd
if message.HasLabelID(pmapi.SentLabel) {
message.Flags |= pmapi.FlagSent
} 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")
}
bddMessageID := ""