Other: Allow non-received messages to be imported to INBOX

This commit is contained in:
James Houlahan
2022-11-02 15:29:27 +01:00
parent 943d95a725
commit 4ded8784fc
4 changed files with 50 additions and 7 deletions

View File

@ -15,6 +15,9 @@ Feature: IMAP create messages
And IMAP client "1" sees the following messages in "INBOX":
| from | to | subject | body |
| john.doe@email.com | user@pm.me | foo | bar |
And IMAP client "1" sees the following messages in "All Mail":
| from | to | subject | body |
| john.doe@email.com | user@pm.me | foo | bar |
Scenario: Creates draft
When IMAP client "1" appends the following messages to "Drafts":
@ -24,6 +27,9 @@ Feature: IMAP create messages
And IMAP client "1" sees the following messages in "Drafts":
| from | to | subject | body |
| user@pm.me | john.doe@email.com | foo | bar |
And IMAP client "1" sees the following messages in "All Mail":
| from | to | subject | body |
| user@pm.me | john.doe@email.com | foo | bar |
Scenario: Creates message sent from user's primary address
When IMAP client "1" appends the following messages to "Sent":
@ -33,6 +39,9 @@ Feature: IMAP create messages
And IMAP client "1" sees the following messages in "Sent":
| from | to | subject | body |
| user@pm.me | john.doe@email.com | foo | bar |
And IMAP client "1" sees the following messages in "All Mail":
| from | to | subject | body |
| user@pm.me | john.doe@email.com | foo | bar |
Scenario: Creates message sent from user's secondary address
When IMAP client "1" appends the following messages to "Sent":
@ -42,6 +51,9 @@ Feature: IMAP create messages
And IMAP client "1" sees the following messages in "Sent":
| from | to | subject | body |
| alias@pm.me | john.doe@email.com | foo | bar |
And IMAP client "1" sees the following messages in "All Mail":
| from | to | subject | body |
| alias@pm.me | john.doe@email.com | foo | bar |
Scenario: Imports an unrelated message to inbox
When IMAP client "1" appends the following messages to "INBOX":
@ -51,6 +63,9 @@ Feature: IMAP create messages
And IMAP client "1" sees the following messages in "INBOX":
| from | to | subject | body |
| john.doe@email.com | john.doe2@pm.me | foo | bar |
And IMAP client "1" sees the following messages in "All Mail":
| from | to | subject | body |
| john.doe@email.com | john.doe2@pm.me | foo | bar |
Scenario: Imports an unrelated message to sent
When IMAP client "1" appends the following messages to "Sent":
@ -59,4 +74,7 @@ Feature: IMAP create messages
Then it succeeds
And IMAP client "1" sees the following messages in "Sent":
| from | to | subject | body |
| john.doe@email.com | john.doe2@pm.me | foo | bar |
| john.doe@email.com | john.doe2@pm.me | foo | bar |
And IMAP client "1" sees the following messages in "All Mail":
| from | to | subject | body |
| john.doe@email.com | john.doe2@pm.me | foo | bar |