fix(GODT-2956): Restore old deletion rules

When unlabeling a message from trash we have to check if this message is
present in another folder before perma-deleting.
This commit is contained in:
Leander Beernaert
2023-09-26 12:47:53 +02:00
parent 76f2e7fdb9
commit f4958b9b53
3 changed files with 82 additions and 5 deletions

View File

@ -7,7 +7,7 @@ Feature: IMAP remove messages from Trash
| label | label |
Then it succeeds
Scenario Outline: Message in Trash and some other label is permanently deleted
Scenario Outline: Message in Trash and some other label is not permanently deleted
Given the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Trash":
| from | to | subject | body |
| john.doe@mail.com | [user:user]@[domain] | foo | hello |
@ -27,8 +27,8 @@ Feature: IMAP remove messages from Trash
When IMAP client "1" expunges
Then it succeeds
And IMAP client "1" eventually sees 1 messages in "Trash"
And IMAP client "1" eventually sees 1 messages in "All Mail"
And IMAP client "1" eventually sees 0 messages in "Labels/label"
And IMAP client "1" eventually sees 2 messages in "All Mail"
And IMAP client "1" eventually sees 1 messages in "Labels/label"
Scenario Outline: Message in Trash only is permanently deleted
Given the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Trash":