mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
44 lines
1.4 KiB
Gherkin
44 lines
1.4 KiB
Gherkin
Feature: SMTP sending with mixed case address
|
|
Background:
|
|
Given there exists an account with username "user@pm.me" and password "password"
|
|
And there exists an account with username "bridgetest@protonmail.com" and password "password"
|
|
And bridge starts
|
|
And the user logs in with username "user@pm.me" and password "password"
|
|
And user "user@pm.me" connects and authenticates SMTP client "1"
|
|
|
|
Scenario: Mixed sender case in sender address
|
|
When SMTP client "1" sends the following message from "user@pm.me" to "bridgetest@protonmail.com":
|
|
"""
|
|
From: Bridge Test <USER@pm.me>
|
|
To: Internal Bridge <bridgetest@protonmail.com>
|
|
|
|
hello
|
|
|
|
"""
|
|
Then it succeeds
|
|
When user "user@pm.me" connects and authenticates IMAP client "1"
|
|
Then IMAP client "1" eventually sees the following messages in "Sent":
|
|
| from | to | subject |
|
|
| user@pm.me | bridgetest@protonmail.com | |
|
|
And the body in the "POST" request to "/mail/v4/messages" is:
|
|
"""
|
|
{
|
|
"Message": {
|
|
"Subject": "",
|
|
"Sender": {
|
|
"Name": "Bridge Test",
|
|
"Address": "user@pm.me"
|
|
},
|
|
"ToList": [
|
|
{
|
|
"Address": "bridgetest@protonmail.com",
|
|
"Name": "Internal Bridge"
|
|
}
|
|
],
|
|
"CCList": [],
|
|
"BCCList": [],
|
|
"MIMEType": "text/plain"
|
|
}
|
|
}
|
|
"""
|