GODT-1650: SMTP BCC tests

This commit is contained in:
James Houlahan
2022-10-06 12:24:30 +02:00
parent cce372fc50
commit db429bd838
2 changed files with 85 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package tests
import (
"fmt"
"net/smtp"
"strings"
"github.com/ProtonMail/proton-bridge/v2/internal/constants"
"github.com/cucumber/godog"
@ -119,8 +120,10 @@ func (s *scenario) smtpClientSendsTheFollowingMessageFromTo(clientID, from, to s
return err
}
if err := client.Rcpt(to); err != nil {
return err
for _, to := range strings.Split(to, ", ") {
if err := client.Rcpt(to); err != nil {
return err
}
}
wc, err := client.Data()