mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
email: Small tidy up following recent changes
This commit is contained in:
parent
9d45391347
commit
764b818934
@ -1245,8 +1245,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode,
|
|||||||
Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
|
Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
|
||||||
else
|
else
|
||||||
/* IMAP download */
|
/* IMAP download */
|
||||||
Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, NULL,
|
Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, NULL, -1, NULL);
|
||||||
-1, NULL); /* no upload here */
|
|
||||||
|
|
||||||
data->req.maxdownload = size;
|
data->req.maxdownload = size;
|
||||||
}
|
}
|
||||||
|
@ -1093,7 +1093,6 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
|
|||||||
{
|
{
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
struct POP3 *pop3 = data->state.proto.pop3;
|
|
||||||
struct pop3_conn *pop3c = &conn->proto.pop3c;
|
struct pop3_conn *pop3c = &conn->proto.pop3c;
|
||||||
struct pingpong *pp = &pop3c->pp;
|
struct pingpong *pp = &pop3c->pp;
|
||||||
|
|
||||||
@ -1115,8 +1114,7 @@ static CURLcode pop3_state_command_resp(struct connectdata *conn,
|
|||||||
pop3c->strip = 2;
|
pop3c->strip = 2;
|
||||||
|
|
||||||
/* POP3 download */
|
/* POP3 download */
|
||||||
Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL,
|
Curl_setup_transfer(conn, FIRSTSOCKET, -1, FALSE, NULL, -1, NULL);
|
||||||
-1, NULL); /* no upload here */
|
|
||||||
|
|
||||||
if(pp->cache) {
|
if(pp->cache) {
|
||||||
/* The header "cache" contains a bunch of data that is actually body
|
/* The header "cache" contains a bunch of data that is actually body
|
||||||
|
@ -1100,8 +1100,7 @@ static CURLcode smtp_state_data_resp(struct connectdata *conn, int smtpcode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* SMTP upload */
|
/* SMTP upload */
|
||||||
Curl_setup_transfer(conn, -1, -1, FALSE, NULL, /* no download */
|
Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL);
|
||||||
FIRSTSOCKET, NULL);
|
|
||||||
|
|
||||||
/* End of do phase */
|
/* End of do phase */
|
||||||
state(conn, SMTP_STOP);
|
state(conn, SMTP_STOP);
|
||||||
|
Loading…
Reference in New Issue
Block a user