imap: Introduced custom request parameters
Added custom request parameters to the per-request structure.
This commit is contained in:
parent
51dbaae432
commit
1d3ccf27ec
@ -1713,6 +1713,8 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status,
|
|||||||
Curl_safefree(imap->uidvalidity);
|
Curl_safefree(imap->uidvalidity);
|
||||||
Curl_safefree(imap->uid);
|
Curl_safefree(imap->uid);
|
||||||
Curl_safefree(imap->section);
|
Curl_safefree(imap->section);
|
||||||
|
Curl_safefree(imap->custom);
|
||||||
|
Curl_safefree(imap->custom_params);
|
||||||
|
|
||||||
/* Clear the transfer mode for the next request */
|
/* Clear the transfer mode for the next request */
|
||||||
imap->transfer = FTPTRANSFER_BODY;
|
imap->transfer = FTPTRANSFER_BODY;
|
||||||
|
@ -65,6 +65,8 @@ struct IMAP {
|
|||||||
char *uidvalidity; /* UIDVALIDITY to check in select */
|
char *uidvalidity; /* UIDVALIDITY to check in select */
|
||||||
char *uid; /* Message UID to fetch */
|
char *uid; /* Message UID to fetch */
|
||||||
char *section; /* Message SECTION to fetch */
|
char *section; /* Message SECTION to fetch */
|
||||||
|
char *custom; /* Custom request */
|
||||||
|
char *custom_params; /* Parameters for the custom request */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 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…
x
Reference in New Issue
Block a user