mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:53:32 +03:00
smtp: allow suffix behind a mail address for RFC 3461
Verified in test 3215 Closes #16643
This commit is contained in:
parent
3ccffad28d
commit
450c00f983
6 changed files with 98 additions and 19 deletions
56
tests/data/test3215
Normal file
56
tests/data/test3215
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
SMTP DSN
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
# Special Replies, so the server does not have to understand DSN
|
||||
<servercmd>
|
||||
REPLY MAIL 250 Ok
|
||||
REPLY RCPT 250 Ok
|
||||
</servercmd>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
smtp
|
||||
</server>
|
||||
<name>
|
||||
SMTP DSN
|
||||
</name>
|
||||
<stdin>
|
||||
From: different
|
||||
To: another
|
||||
|
||||
body
|
||||
</stdin>
|
||||
<command>
|
||||
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt "<recipient@example.com> NOTIFY=SUCCESS,FAILURE" --mail-from "<sender@example.com> RET=HDRS" -T -
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
EHLO %TESTNUMBER
|
||||
MAIL FROM:<sender@example.com> RET=HDRS
|
||||
RCPT TO:<recipient@example.com> NOTIFY=SUCCESS,FAILURE
|
||||
DATA
|
||||
QUIT
|
||||
</protocol>
|
||||
<upload>
|
||||
From: different
|
||||
To: another
|
||||
|
||||
body
|
||||
.
|
||||
</upload>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue