Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smtp: Support the SMTPUTF8 extension for the EXPN command
Simply notify the server we support the SMTPUTF8 extension if it does.
- Loading branch information
1 parent
67da3d9
commit e2b473e
Showing
3 changed files
with
67 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
SMTP | ||
EXPN | ||
CUSTOMREQUEST | ||
IDN | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<servercmd> | ||
CAPA SMTPUTF8 | ||
</servercmd> | ||
<data> | ||
250-Joe Smith <joe.smith@example.com> | ||
250-Harry Smith <harry.smith@example.com> | ||
250 Melvin Smith <melvin.smith@example.com> | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
smtp | ||
</server> | ||
<features> | ||
idn | ||
</features> | ||
<name> | ||
SMTP mailing list EXPN (CUSTOMREQUEST) with SMTPUTF8 support | ||
</name> | ||
<command> | ||
smtp://%HOSTIP:%SMTPPORT/969 --mail-rcpt Friends -X EXPN | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
EHLO 969 | ||
EXPN Friends SMTPUTF8 | ||
QUIT | ||
</protocol> | ||
</verify> | ||
</testcase> |