CURLcode result = CURLE_OK;
struct SessionHandle *data = conn->data;
struct imap_conn *imapc = &conn->proto.imapc;
- struct IMAP *imap = data->state.proto.imap;
struct pingpong *pp = &imapc->pp;
const char *ptr = data->state.buffer;
Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
else
/* IMAP download */
- Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, imap->bytecountp,
+ Curl_setup_transfer(conn, FIRSTSOCKET, size, FALSE, NULL,
-1, NULL); /* no upload here */
data->req.maxdownload = size;
return CURLE_OUT_OF_MEMORY;
}
- /* Get some initial data into the imap struct */
- imap->bytecountp = &data->req.bytecount;
-
return CURLE_OK;
}
perhaps the SessionHandle is changed between the times the connection is
used. */
struct IMAP {
- curl_off_t *bytecountp;
curl_pp_transfer transfer;
char *mailbox; /* Mailbox to select */
char *uidvalidity; /* UIDVALIDITY to check in select */