imap: Introduced custom request parameters

Added custom request parameters to the per-request structure.
This commit is contained in:
Jiri Hruska 2013-03-03 10:12:27 +01:00 committed by Steve Holme
parent 51dbaae432
commit 1d3ccf27ec
2 changed files with 4 additions and 0 deletions

View File

@ -1713,6 +1713,8 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status,
Curl_safefree(imap->uidvalidity);
Curl_safefree(imap->uid);
Curl_safefree(imap->section);
Curl_safefree(imap->custom);
Curl_safefree(imap->custom_params);
/* Clear the transfer mode for the next request */
imap->transfer = FTPTRANSFER_BODY;

View File

@ -65,6 +65,8 @@ struct IMAP {
char *uidvalidity; /* UIDVALIDITY to check in select */
char *uid; /* Message UID 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