diff options
author | Vincent Richard <[email protected]> | 2017-12-14 21:11:58 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2017-12-14 21:11:58 +0000 |
commit | d7a1b5817e8389e9a4ea3d33c4dd250df9c6860c (patch) | |
tree | 699e0cb70c024209ee9106fbc442ce41968ec34c /tests/net/smtp/SMTPTransportTestUtils.hpp | |
parent | Fixed #186: use SMTPUTF8 only when needed. (diff) | |
download | vmime-d7a1b5817e8389e9a4ea3d33c4dd250df9c6860c.tar.gz vmime-d7a1b5817e8389e9a4ea3d33c4dd250df9c6860c.zip |
Issue #186: SMTPUTF8 is not an argument to RCPT + UTF8 in recipient address must switch the whole message to SMTPUTF8.
Diffstat (limited to '')
-rw-r--r-- | tests/net/smtp/SMTPTransportTestUtils.hpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/net/smtp/SMTPTransportTestUtils.hpp b/tests/net/smtp/SMTPTransportTestUtils.hpp index cfd830cf..b5af2f10 100644 --- a/tests/net/smtp/SMTPTransportTestUtils.hpp +++ b/tests/net/smtp/SMTPTransportTestUtils.hpp @@ -607,7 +607,7 @@ public: { m_rcptLines.insert("RCPT TO:<[email protected]>"); m_rcptLines.insert("RCPT TO:<[email protected]>"); - m_rcptLines.insert("RCPT TO:<ré[email protected]> SMTPUTF8"); + m_rcptLines.insert("RCPT TO:<ré[email protected]>"); } else { @@ -681,11 +681,19 @@ public: if (SUPPORTS_UTF8) { - VASSERT_EQ("MAIL", std::string("MAIL FROM:<expé[email protected]> SMTPUTF8"), line); + VASSERT( + "MAIL", + std::string("MAIL FROM:<[email protected]> SMTPUTF8") == line + || std::string("MAIL FROM:<expé[email protected]> SMTPUTF8") == line + ); } else { - VASSERT_EQ("MAIL", std::string("MAIL FROM:<[email protected]>"), line); + VASSERT( + "MAIL", + std::string("MAIL FROM:<[email protected]>") == line + || std::string("MAIL FROM:<[email protected]>") == line + ); } localSend("250 OK\r\n"); |