diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-02 21:22:44 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-02 21:22:44 +0000 |
commit | dcffd936e15837c4894a0fabde60b149f4a28636 (patch) | |
tree | 9df9aea0496217f99f76581733c2ca1dd532c404 /lib | |
parent | e94fbcabd77d51dd3a01e0d3dec3646abaa5742e (diff) |
imap: Minor code tidy up
Minor tidy up of code layout and comments following recent changes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/imap.c b/lib/imap.c index c61231b2a..d240fb3a9 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1273,7 +1273,7 @@ static CURLcode imap_state_select_resp(struct connectdata *conn, int imapcode, return result; } -/* For the (first line of the) FETCH response */ +/* For the (first line of the) FETCH responses */ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, imapstate instate) { @@ -1366,7 +1366,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, return result; } -/* For the final response to the FETCH command */ +/* For final FETCH responses performed after the download */ static CURLcode imap_state_fetch_final_resp(struct connectdata *conn, int imapcode, imapstate instate) @@ -1387,8 +1387,7 @@ static CURLcode imap_state_fetch_final_resp(struct connectdata *conn, } /* For APPEND responses */ -static CURLcode imap_state_append_resp(struct connectdata *conn, - int imapcode, +static CURLcode imap_state_append_resp(struct connectdata *conn, int imapcode, imapstate instate) { CURLcode result = CURLE_OK; @@ -1401,10 +1400,12 @@ static CURLcode imap_state_append_resp(struct connectdata *conn, } else { Curl_pgrsSetUploadSize(data, data->set.infilesize); - Curl_setup_transfer(conn, -1, -1, FALSE, NULL, /* No download */ - FIRSTSOCKET, NULL); + + /* IMAP upload */ + Curl_setup_transfer(conn, -1, -1, FALSE, NULL, FIRSTSOCKET, NULL); } + /* End of DO phase */ state(conn, IMAP_STOP); return result; @@ -1425,6 +1426,7 @@ static CURLcode imap_state_append_final_resp(struct connectdata *conn, else result = CURLE_UPLOAD_FAILED; + /* End of DONE phase */ state(conn, IMAP_STOP); return result; |