aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Hruska <jirka@fud.cz>2013-02-23 18:24:53 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-02-23 17:26:51 +0000
commitb6f32464e9e52ca2892f5bceab46c4f60b592e5a (patch)
tree1113c3060e63e2f7fce2639a79aa69e0e31c52b9
parent4afcb778203bf5af15804a1897596c6feb4d3b81 (diff)
imap: Introduced new per-request veriables
Added uidvalidity, uid and section variables to the per-request IMAP structure in preparation for upcoming URL parsing.
-rw-r--r--lib/imap.c3
-rw-r--r--lib/imap.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/imap.c b/lib/imap.c
index dce9f3016..d69922e45 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -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;
diff --git a/lib/imap.h b/lib/imap.h
index 6fa1ba4f2..09c296f4c 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -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