Feature: IMAP move messages by append and delete (without MOVE support, e.g., Outlook) Background: Given there is connected user "user" And there is "user" with mailbox "Folders/mbox" 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 "" When IMAP clients "source" and "target" move message seq "2" of "user" from "INBOX" to "" 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 "" 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 "" 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 "" And there is IMAP client "target" selected in "INBOX" When IMAP clients "source" and "target" move message seq "2" of "user" from "" to "INBOX" 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 "" for "user" has messages | from | to | subject | | john.doe@mail.com | user@pm.me | foo | Examples: | mailbox | | Spam | | Trash | Scenario Outline: Move message from to All Mail by Given there are messages in mailbox "" for "user" | id | from | to | subject | body | | 1 | john.doe@mail.com | user@pm.me | subj1 | body1 | | 2 | john.doe@mail.com | name@pm.me | subj2 | body2 | And there is IMAP client "source" selected in "" And there is IMAP client "target" selected in "All Mail" When IMAP clients "source" and "target" move message seq "2" of "user" to "All Mail" by Then IMAP response to "source" is "OK" Then IMAP response to "target" is "OK" And mailbox "" for "user" has messages | from | to | subject | | john.doe@mail.com | user@pm.me | subj1 | And mailbox "All Mail" for "user" has messages | from | to | subject | | john.doe@mail.com | user@pm.me | subj1 | | john.doe@mail.com | name@pm.me | subj2 | Examples: | mailbox | order | | INBOX | APPEND DELETE EXPUNGE | | Archive | APPEND DELETE EXPUNGE | | Trash | APPEND DELETE EXPUNGE | | Spam | APPEND DELETE EXPUNGE | | INBOX | DELETE APPEND EXPUNGE | | Archive | DELETE APPEND EXPUNGE | | Trash | DELETE APPEND EXPUNGE | | Spam | DELETE APPEND EXPUNGE | | INBOX | DELETE EXPUNGE APPEND | | Archive | DELETE EXPUNGE APPEND | | Trash | DELETE EXPUNGE APPEND | | Spam | DELETE EXPUNGE APPEND |