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)
{
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)
}
/* 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;
}
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;
else
result = CURLE_UPLOAD_FAILED;
+ /* End of DONE phase */
state(conn, IMAP_STOP);
return result;