Commit 1d3ccf27 authored by Jiri Hruska's avatar Jiri Hruska Committed by Steve Holme
Browse files

imap: Introduced custom request parameters

Added custom request parameters to the per-request structure.
parent 51dbaae4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -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