pop3/smtp: return *WEIRD_SERVER_REPLY when not understood

This leaves the CURLE_RECV_ERROR error code for explicit failure to
receive network data and allows users to better separate the problems.

Ref #8356
Reported-by: Rianov Viacheslav
Closes #8506
This commit is contained in:
Daniel Stenberg 2022-03-29 14:01:48 +02:00
parent 3a4182d468
commit 5a9d7c4e68
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 14 additions and 14 deletions

View file

@ -34,7 +34,7 @@ pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -l -u user:secret
# Verify data after the test has been "shot"
<verify>
<errorcode>
56
8
</errorcode>
<protocol>
CAPA

View file

@ -34,7 +34,7 @@ pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user:secret
# Verify data after the test has been "shot"
<verify>
<errorcode>
56
8
</errorcode>
<protocol>
CAPA

View file

@ -31,9 +31,9 @@ smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient
#
# Verify data after the test has been "shot"
<verify>
# 56 - CURLE_RECV_ERROR
# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
56
8
</errorcode>
<protocol>
EHLO %TESTNUMBER

View file

@ -38,9 +38,9 @@ smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt Användaren
#
# Verify data after the test has been "shot"
<verify>
# 56 - CURLE_RECV_ERROR
# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
56
8
</errorcode>
<protocol>
EHLO %TESTNUMBER

View file

@ -38,9 +38,9 @@ smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt Användaren@example.com
#
# Verify data after the test has been "shot"
<verify>
# 56 - CURLE_RECV_ERROR
# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
56
8
</errorcode>
<protocol>
EHLO %TESTNUMBER

View file

@ -39,9 +39,9 @@ smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt user@åäö.se
#
# Verify data after the test has been "shot"
<verify>
# 56 - CURLE_RECV_ERROR
# 8 - CURLE_WEIRD_SERVER_REPLY
<errorcode>
56
8
</errorcode>
<protocol>
EHLO %TESTNUMBER