Skip to content
Snippets Groups Projects
Commit 1614dc07 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Merge pull request #23 from salty-horse/pop3_list_space

[pop3] remove extra space in LIST command
parents 57064e4a af6dcc92
No related branches found
No related tags found
No related merge requests found
......@@ -481,11 +481,14 @@ static CURLcode pop3_list(struct connectdata *conn)
CURLcode result = CURLE_OK;
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)
return result;
if(strlen(pop3c->mailbox))
if(pop3c->mailbox[0] != '\0')
state(conn, POP3_LIST_SINGLE);
else
state(conn, POP3_LIST);
......
......@@ -38,7 +38,7 @@ pop3://%HOSTIP:%POP3PORT/ -u user:secret
<protocol>
USER user
PASS secret
LIST
LIST
QUIT
</protocol>
</verify>
......
......@@ -36,7 +36,7 @@ pop3://%HOSTIP:%POP3PORT/ -u user:secret
<protocol>
USER user
PASS secret
LIST
LIST
QUIT
</protocol>
</verify>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment