mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
imap: Introduced new per-request veriables
Added uidvalidity, uid and section variables to the per-request IMAP structure in preparation for upcoming URL parsing.
This commit is contained in:
parent
4afcb77820
commit
b6f32464e9
@ -1474,6 +1474,9 @@ 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);
|
||||||
|
Curl_safefree(imap->uidvalidity);
|
||||||
|
Curl_safefree(imap->uid);
|
||||||
|
Curl_safefree(imap->section);
|
||||||
|
|
||||||
/* Clear the transfer mode for the next request */
|
/* Clear the transfer mode for the next request */
|
||||||
imap->transfer = FTPTRANSFER_BODY;
|
imap->transfer = FTPTRANSFER_BODY;
|
||||||
|
@ -59,6 +59,9 @@ struct IMAP {
|
|||||||
curl_off_t *bytecountp;
|
curl_off_t *bytecountp;
|
||||||
curl_pp_transfer transfer;
|
curl_pp_transfer transfer;
|
||||||
char *mailbox; /* Mailbox to select */
|
char *mailbox; /* Mailbox to select */
|
||||||
|
char *uidvalidity; /* UIDVALIDITY to check in select */
|
||||||
|
char *uid; /* Message UID to fetch */
|
||||||
|
char *section; /* Message SECTION to fetch */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* imap_conn is used for struct connection-oriented data in the connectdata
|
/* imap_conn is used for struct connection-oriented data in the connectdata
|
||||||
|
Loading…
Reference in New Issue
Block a user