From: Jiri Hruska Date: Sat, 23 Feb 2013 17:24:53 +0000 (+0100) Subject: imap: Introduced new per-request veriables X-Git-Tag: curl-7_30_0~294 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6f32464e9e52ca2892f5bceab46c4f60b592e5a;p=thirdparty%2Fcurl.git imap: Introduced new per-request veriables Added uidvalidity, uid and section variables to the per-request IMAP structure in preparation for upcoming URL parsing. --- diff --git a/lib/imap.c b/lib/imap.c index dce9f3016e..d69922e454 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 6fa1ba4f24..09c296f4c5 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