email: Minor tidy up following IMAP changes
This commit is contained in:
parent
35fb6bee0e
commit
d415327bd7
@ -1469,7 +1469,7 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status,
|
|||||||
/* Cleanup our per-request based variables */
|
/* Cleanup our per-request based variables */
|
||||||
Curl_safefree(imap->mailbox);
|
Curl_safefree(imap->mailbox);
|
||||||
|
|
||||||
/* Clear the transfer mode for the next connection */
|
/* Clear the transfer mode for the next request */
|
||||||
imap->transfer = FTPTRANSFER_BODY;
|
imap->transfer = FTPTRANSFER_BODY;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -1592,7 +1592,7 @@ static CURLcode imap_disconnect(struct connectdata *conn, bool dead_connection)
|
|||||||
/* The IMAP session may or may not have been allocated/setup at this
|
/* The IMAP session may or may not have been allocated/setup at this
|
||||||
point! */
|
point! */
|
||||||
if(!dead_connection && imapc->pp.conn)
|
if(!dead_connection && imapc->pp.conn)
|
||||||
(void)imap_logout(conn); /* ignore errors on the LOGOUT */
|
(void)imap_logout(conn); /* ignore errors on LOGOUT */
|
||||||
|
|
||||||
/* Disconnect from the server */
|
/* Disconnect from the server */
|
||||||
Curl_pp_disconnect(&imapc->pp);
|
Curl_pp_disconnect(&imapc->pp);
|
||||||
|
@ -1401,7 +1401,7 @@ static CURLcode pop3_done(struct connectdata *conn, CURLcode status,
|
|||||||
Curl_safefree(pop3c->mailbox);
|
Curl_safefree(pop3c->mailbox);
|
||||||
Curl_safefree(pop3c->custom);
|
Curl_safefree(pop3c->custom);
|
||||||
|
|
||||||
/* Clear the transfer mode for the next connection */
|
/* Clear the transfer mode for the next request */
|
||||||
pop3->transfer = FTPTRANSFER_BODY;
|
pop3->transfer = FTPTRANSFER_BODY;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -1529,7 +1529,7 @@ static CURLcode pop3_disconnect(struct connectdata *conn,
|
|||||||
/* The POP3 session may or may not have been allocated/setup at this
|
/* The POP3 session may or may not have been allocated/setup at this
|
||||||
point! */
|
point! */
|
||||||
if(!dead_connection && pop3c->pp.conn)
|
if(!dead_connection && pop3c->pp.conn)
|
||||||
(void)pop3_quit(conn); /* ignore errors on the LOGOUT */
|
(void)pop3_quit(conn); /* ignore errors on QUIT */
|
||||||
|
|
||||||
/* Disconnect from the server */
|
/* Disconnect from the server */
|
||||||
Curl_pp_disconnect(&pop3c->pp);
|
Curl_pp_disconnect(&pop3c->pp);
|
||||||
|
@ -1439,7 +1439,7 @@ static CURLcode smtp_done(struct connectdata *conn, CURLcode status,
|
|||||||
result = smtp_block_statemach(conn);
|
result = smtp_block_statemach(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear the transfer mode for the next connection */
|
/* Clear the transfer mode for the next request */
|
||||||
smtp->transfer = FTPTRANSFER_BODY;
|
smtp->transfer = FTPTRANSFER_BODY;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -1557,7 +1557,7 @@ static CURLcode smtp_disconnect(struct connectdata *conn,
|
|||||||
/* The SMTP session may or may not have been allocated/setup at this
|
/* The SMTP session may or may not have been allocated/setup at this
|
||||||
point! */
|
point! */
|
||||||
if(!dead_connection && smtpc->pp.conn)
|
if(!dead_connection && smtpc->pp.conn)
|
||||||
(void)smtp_quit(conn); /* ignore errors on the LOGOUT */
|
(void)smtp_quit(conn); /* ignore errors on QUIT */
|
||||||
|
|
||||||
/* Disconnect from the server */
|
/* Disconnect from the server */
|
||||||
Curl_pp_disconnect(&smtpc->pp);
|
Curl_pp_disconnect(&smtpc->pp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user