forked from Silverfish/proton-bridge
fix(GODT-3185): logic mistake.
This commit is contained in:
@ -885,7 +885,7 @@ func (s *Connector) reportGODT3185(isDraft bool, defaultAddr string, p *parser.P
|
|||||||
}
|
}
|
||||||
|
|
||||||
reportMode := "combined"
|
reportMode := "combined"
|
||||||
if isCombinedMode {
|
if !isCombinedMode {
|
||||||
reportMode = "split"
|
reportMode = "split"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ Feature: IMAP create messages
|
|||||||
And IMAP client "1" eventually sees the following messages in "All Mail":
|
And IMAP client "1" eventually sees the following messages in "All Mail":
|
||||||
| from | to | subject | body |
|
| from | to | subject | body |
|
||||||
| [alias:alias]@[domain] | john.doe@email.com | foo | bar |
|
| [alias:alias]@[domain] | john.doe@email.com | foo | bar |
|
||||||
And bridge reports a message with "GODT-3185: import with non-default address in split mode: using sender address"
|
And bridge reports a message with "GODT-3185: import with non-default address in combined mode: using sender address"
|
||||||
|
|
||||||
Scenario: Imports an unrelated message to inbox
|
Scenario: Imports an unrelated message to inbox
|
||||||
When IMAP client "1" appends the following messages to "INBOX":
|
When IMAP client "1" appends the following messages to "INBOX":
|
||||||
|
|||||||
@ -164,7 +164,7 @@ Feature: IMAP Draft messages
|
|||||||
And IMAP client "1" eventually sees the following messages in "Drafts":
|
And IMAP client "1" eventually sees the following messages in "Drafts":
|
||||||
| to | subject | body |
|
| to | subject | body |
|
||||||
| someone@example.com | Draft without From | This is a Draft without From in header |
|
| someone@example.com | Draft without From | This is a Draft without From in header |
|
||||||
And bridge reports a message with "GODT-3185: draft with non-default invalid address in split mode: error import/draft"
|
And bridge reports a message with "GODT-3185: draft with non-default invalid address in combined mode: error import/draft"
|
||||||
|
|
||||||
@regression
|
@regression
|
||||||
Scenario: Only one draft in Drafts and All Mail after editing it locally multiple times
|
Scenario: Only one draft in Drafts and All Mail after editing it locally multiple times
|
||||||
|
|||||||
Reference in New Issue
Block a user