|
|
|
|
@ -5,55 +5,44 @@ Feature: IMAP move messages by append and delete (without MOVE support, e.g., Ou |
|
|
|
|
And there is IMAP client "source" logged in as "user" |
|
|
|
|
And there is IMAP client "target" logged in as "user" |
|
|
|
|
|
|
|
|
|
Scenario Outline: Move message from INBOX to mailbox by append and delete |
|
|
|
|
Given there are messages in mailbox "INBOX" for "user" |
|
|
|
|
| id | from | to | subject | body | |
|
|
|
|
| 1 | john.doe@mail.com | user@pm.me | foo | hello | |
|
|
|
|
| 2 | jane.doe@mail.com | name@pm.me | bar | world | |
|
|
|
|
And there is IMAP client "source" selected in "INBOX" |
|
|
|
|
And there is IMAP client "target" selected in "<mailbox>" |
|
|
|
|
When IMAP clients "source" and "target" move message seq "2" of "user" from "INBOX" to "<mailbox>" |
|
|
|
|
Then IMAP response to "source" is "OK" |
|
|
|
|
Then IMAP response to "target" is "OK" |
|
|
|
|
When IMAP client "source" sends expunge |
|
|
|
|
Then IMAP response to "source" is "OK" |
|
|
|
|
And mailbox "INBOX" for "user" has messages |
|
|
|
|
| from | to | subject | |
|
|
|
|
| john.doe@mail.com | user@pm.me | foo | |
|
|
|
|
And mailbox "<mailbox>" for "user" has messages |
|
|
|
|
| from | to | subject | |
|
|
|
|
| jane.doe@mail.com | name@pm.me | bar | |
|
|
|
|
|
|
|
|
|
Examples: |
|
|
|
|
| mailbox | |
|
|
|
|
| Archive | |
|
|
|
|
| Folders/mbox | |
|
|
|
|
| Spam | |
|
|
|
|
| Trash | |
|
|
|
|
|
|
|
|
|
Scenario Outline: Move message from Trash/Spam to INBOX by append and delete |
|
|
|
|
Given there are messages in mailbox "<mailbox>" for "user" |
|
|
|
|
| id | from | to | subject | body | |
|
|
|
|
| 1 | john.doe@mail.com | user@pm.me | foo | hello | |
|
|
|
|
| 2 | jane.doe@mail.com | name@pm.me | bar | world | |
|
|
|
|
And there is IMAP client "source" selected in "<mailbox>" |
|
|
|
|
And there is IMAP client "target" selected in "INBOX" |
|
|
|
|
When IMAP clients "source" and "target" move message seq "2" of "user" from "<mailbox>" to "INBOX" |
|
|
|
|
Scenario Outline: Move message from <srcMailbox> to <dstMailbox> by <order> |
|
|
|
|
Given there are messages in mailbox "<srcMailbox>" for "user" |
|
|
|
|
| id | from | to | subject | body | |
|
|
|
|
| 1 | sndr1@pm.me | rcvr1@pm.me | subj1 | body1 | |
|
|
|
|
| 2 | sndr2@pm.me | rcvr2@pm.me | subj2 | body2 | |
|
|
|
|
And there is IMAP client "source" selected in "<srcMailbox>" |
|
|
|
|
And there is IMAP client "target" selected in "<dstMailbox>" |
|
|
|
|
When IMAP clients "source" and "target" move message seq "2" of "user" to "<dstMailbox>" by <order> |
|
|
|
|
Then IMAP response to "source" is "OK" |
|
|
|
|
Then IMAP response to "target" is "OK" |
|
|
|
|
When IMAP client "source" sends expunge |
|
|
|
|
Then IMAP response to "source" is "OK" |
|
|
|
|
And mailbox "INBOX" for "user" has messages |
|
|
|
|
| from | to | subject | |
|
|
|
|
| jane.doe@mail.com | name@pm.me | bar | |
|
|
|
|
And mailbox "<mailbox>" for "user" has messages |
|
|
|
|
| from | to | subject | |
|
|
|
|
| john.doe@mail.com | user@pm.me | foo | |
|
|
|
|
|
|
|
|
|
And mailbox "<dstMailbox>" for "user" has 1 messages |
|
|
|
|
And mailbox "<dstMailbox>" for "user" has messages |
|
|
|
|
| from | to | subject | |
|
|
|
|
| sndr2@pm.me | rcvr2@pm.me | subj2 | |
|
|
|
|
And mailbox "<srcMailbox>" for "user" has 1 messages |
|
|
|
|
And mailbox "<srcMailbox>" for "user" has messages |
|
|
|
|
| from | to | subject | |
|
|
|
|
| sndr1@pm.me | rcvr1@pm.me | subj1 | |
|
|
|
|
Examples: |
|
|
|
|
| mailbox | |
|
|
|
|
| Spam | |
|
|
|
|
| Trash | |
|
|
|
|
| srcMailbox | dstMailbox | order | |
|
|
|
|
| Trash | INBOX | APPEND DELETE EXPUNGE | |
|
|
|
|
| Spam | INBOX | APPEND DELETE EXPUNGE | |
|
|
|
|
| INBOX | Archive | APPEND DELETE EXPUNGE | |
|
|
|
|
| INBOX | Folders/mbox | APPEND DELETE EXPUNGE | |
|
|
|
|
| INBOX | Spam | APPEND DELETE EXPUNGE | |
|
|
|
|
| INBOX | Trash | APPEND DELETE EXPUNGE | |
|
|
|
|
| Trash | INBOX | DELETE APPEND EXPUNGE | |
|
|
|
|
| Spam | INBOX | DELETE APPEND EXPUNGE | |
|
|
|
|
| INBOX | Archive | DELETE APPEND EXPUNGE | |
|
|
|
|
| INBOX | Folders/mbox | DELETE APPEND EXPUNGE | |
|
|
|
|
| INBOX | Spam | DELETE APPEND EXPUNGE | |
|
|
|
|
| INBOX | Trash | DELETE APPEND EXPUNGE | |
|
|
|
|
| Trash | INBOX | DELETE EXPUNGE APPEND | |
|
|
|
|
| Spam | INBOX | DELETE EXPUNGE APPEND | |
|
|
|
|
| INBOX | Archive | DELETE EXPUNGE APPEND | |
|
|
|
|
| INBOX | Folders/mbox | DELETE EXPUNGE APPEND | |
|
|
|
|
| INBOX | Spam | DELETE EXPUNGE APPEND | |
|
|
|
|
| INBOX | Trash | DELETE EXPUNGE APPEND | |
|
|
|
|
|
|
|
|
|
Scenario Outline: Move message from <mailbox> to All Mail by <order> |
|
|
|
|
Given there are messages in mailbox "<mailbox>" for "user" |
|
|
|
|
|