imap: Introduced custom request parameters
authorJiri Hruska <jirka@fud.cz>
Sun, 3 Mar 2013 09:12:27 +0000 (10:12 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 3 Mar 2013 11:03:45 +0000 (11:03 +0000)
Added custom request parameters to the per-request structure.

lib/imap.c
lib/imap.h

index 1feeb73..3a1d135 100644 (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;
index b92a14d..1ca67fe 100644 (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