aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJiri Hruska <jirka@fud.cz>2013-02-26 21:42:01 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-02-26 22:09:18 +0000
commit58efa46a5d7b5300480acfc29d301a94053a6dab (patch)
tree508f56bfa6a4eb93bf3104057c82544ace6e7a6e /lib
parentacd22f05ddc1afb3e710daa6f77f3b92568a637d (diff)
imap: Introduced the mailbox_uidvalidity variable
Added the mailbox_uidvalidity variable to the per-connection structure in preparation for checking the UIDVALIDITY mailbox attribute.
Diffstat (limited to 'lib')
-rw-r--r--lib/imap.c3
-rw-r--r--lib/imap.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 685eb4d7f..101f2bec5 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1676,6 +1676,9 @@ static CURLcode imap_disconnect(struct connectdata *conn, bool dead_connection)
/* Cleanup the SASL module */
Curl_sasl_cleanup(conn, imapc->authused);
+ /* Cleanup our connection based variables */
+ Curl_safefree(imapc->mailbox_uidvalidity);
+
return CURLE_OK;
}
diff --git a/lib/imap.h b/lib/imap.h
index 08c35b630..0df0c8ea8 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -76,6 +76,7 @@ struct imap_conn {
bool tls_supported; /* StartTLS capability supported by server */
bool login_disabled; /* LOGIN command explicitly disabled by server */
bool ir_supported; /* Initial response supported by server */
+ char *mailbox_uidvalidity; /* UIDVALIDITY parsed from SELECT response */
};
extern const struct Curl_handler Curl_handler_imap;