imap: Introduced new per-request veriables
authorJiri Hruska <jirka@fud.cz>
Sat, 23 Feb 2013 17:24:53 +0000 (18:24 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 23 Feb 2013 17:26:51 +0000 (17:26 +0000)
Added uidvalidity, uid and section variables to the per-request IMAP
structure in preparation for upcoming URL parsing.

lib/imap.c
lib/imap.h

index dce9f30..d69922e 100644 (file)
@@ -1474,6 +1474,9 @@ static CURLcode imap_done(struct connectdata *conn, CURLcode status,
 
   /* Cleanup our per-request based variables */
   Curl_safefree(imap->mailbox);
+  Curl_safefree(imap->uidvalidity);
+  Curl_safefree(imap->uid);
+  Curl_safefree(imap->section);
 
   /* Clear the transfer mode for the next request */
   imap->transfer = FTPTRANSFER_BODY;
index 6fa1ba4..09c296f 100644 (file)
@@ -59,6 +59,9 @@ struct IMAP {
   curl_off_t *bytecountp;
   curl_pp_transfer transfer;
   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