test 814: smtp without --mail-from

Verifies the fix from commit 322f3d5af7
This commit is contained in:
Daniel Stenberg 2011-09-21 22:32:27 +02:00
parent 322f3d5af7
commit e9cf4cb791
2 changed files with 54 additions and 1 deletions

52
tests/data/test814 Normal file
View file

@ -0,0 +1,52 @@
<testcase>
<info>
<keywords>
SMTP
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
smtp
</server>
<name>
SMTP without --mail-from
</name>
<stdin>
From: different
To: another
body
</stdin>
<command>
smtp://%HOSTIP:%SMTPPORT/user --mail-rcpt 814@foo -T -
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
EHLO user
MAIL FROM:<>
RCPT TO:<814@foo>
DATA
QUIT
</protocol>
<upload>
From: different
To: another
body
.
</upload>
</verify>
</testcase>