mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
This patch also fixes the message builder to not override other headers that already exist to avoid overriding sanitized header entries.
19 lines
1.1 KiB
Gherkin
19 lines
1.1 KiB
Gherkin
Feature: IMAP Fetch
|
|
Background:
|
|
Given there exists an account with username "[user:user]" and password "password"
|
|
And the account "[user:user]" has the following custom mailboxes:
|
|
| name | type |
|
|
| mbox | folder |
|
|
And the address "[user:user]@[domain]" of account "[user:user]" has the following messages in "Inbox":
|
|
| from | to | subject | date |
|
|
| john.doe@mail.com | [user:user]@[domain] | foo | 13 Jul 69 00:00 +0000 |
|
|
And bridge starts
|
|
And the user logs in with username "[user:user]" and password "password"
|
|
And user "[user:user]" finishes syncing
|
|
And user "[user:user]" connects and authenticates IMAP client "1"
|
|
|
|
Scenario: Fetch very old message
|
|
Given IMAP client "1" sees the following messages in "INBOX":
|
|
| from | to | subject | date |
|
|
| john.doe@mail.com | [user:user]@[domain] | foo | 13 Aug 82 00:00 +0000 |
|
|
Then IMAP client "1" sees header "X-Original-Date: Sun, 13 Jul 1969 00:00:00 +0000" in message with subject "foo" in "INBOX" |