-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GODT-2576): Forward and $Forward Flag Support
When an IMAP client stores the `Forward` or `$Forward` flags on a message, the forwarded state is now correctly represented on the Proton servers. ProtonMail/go-proton-api#125 ProtonMail/gluon#400
- Loading branch information
1 parent
ddc5e77
commit bc38140
Showing
10 changed files
with
176 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Feature: IMAP marks messages as forwarded | ||
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 1 messages in "Folders/mbox" | ||
Then it succeeds | ||
When 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" | ||
Then it succeeds | ||
|
||
Scenario: Mark message as forwarded | ||
When IMAP client "1" selects "Folders/mbox" | ||
And IMAP client "1" marks message 1 as "forwarded" | ||
And it succeeds | ||
Then IMAP client "1" eventually sees that message at row 1 has the flag "forwarded" | ||
And it succeeds | ||
|
||
@ignore-live | ||
Scenario: Mark message as forwarded and then revert | ||
When IMAP client "1" selects "Folders/mbox" | ||
And IMAP client "1" marks message 1 as "forwarded" | ||
And it succeeds | ||
Then IMAP client "1" eventually sees that message at row 1 has the flag "forwarded" | ||
And it succeeds | ||
And IMAP client "1" marks message 1 as "unforwarded" | ||
And it succeeds | ||
Then IMAP client "1" eventually sees that message at row 1 does not have the flag "forwarded" | ||
And it succeeds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters