[pop3] remove extra space in LIST command
Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error
This commit is contained in:
parent
57064e4a0d
commit
af6dcc92d5
@ -481,11 +481,14 @@ static CURLcode pop3_list(struct connectdata *conn)
|
|||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
struct pop3_conn *pop3c = &conn->proto.pop3c;
|
struct pop3_conn *pop3c = &conn->proto.pop3c;
|
||||||
|
|
||||||
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "LIST %s", pop3c->mailbox);
|
if(pop3c->mailbox[0] != '\0')
|
||||||
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "LIST %s", pop3c->mailbox);
|
||||||
|
else
|
||||||
|
result = Curl_pp_sendf(&conn->proto.pop3c.pp, "LIST");
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
if(strlen(pop3c->mailbox))
|
if(pop3c->mailbox[0] != '\0')
|
||||||
state(conn, POP3_LIST_SINGLE);
|
state(conn, POP3_LIST_SINGLE);
|
||||||
else
|
else
|
||||||
state(conn, POP3_LIST);
|
state(conn, POP3_LIST);
|
||||||
|
@ -38,7 +38,7 @@ pop3://%HOSTIP:%POP3PORT/ -u user:secret
|
|||||||
<protocol>
|
<protocol>
|
||||||
USER user
|
USER user
|
||||||
PASS secret
|
PASS secret
|
||||||
LIST
|
LIST
|
||||||
QUIT
|
QUIT
|
||||||
</protocol>
|
</protocol>
|
||||||
</verify>
|
</verify>
|
||||||
|
@ -36,7 +36,7 @@ pop3://%HOSTIP:%POP3PORT/ -u user:secret
|
|||||||
<protocol>
|
<protocol>
|
||||||
USER user
|
USER user
|
||||||
PASS secret
|
PASS secret
|
||||||
LIST
|
LIST
|
||||||
QUIT
|
QUIT
|
||||||
</protocol>
|
</protocol>
|
||||||
</verify>
|
</verify>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user