]> granicus.if.org Git - curl/commitdiff
imap: Introduced the mailbox_uidvalidity variable
authorJiri Hruska <jirka@fud.cz>
Tue, 26 Feb 2013 20:42:01 +0000 (21:42 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 26 Feb 2013 22:09:18 +0000 (22:09 +0000)
Added the mailbox_uidvalidity variable to the per-connection structure
in preparation for checking the UIDVALIDITY mailbox attribute.

lib/imap.c
lib/imap.h

index 685eb4d7f4d0cf27e19a121b7156c0b28d872095..101f2bec5e14bd22c73ed84584bcd76ecae6ee3f 100644 (file)
@@ -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;
 }
 
index 08c35b6305daba36245a09a02db2fb29f435c29e..0df0c8ea84f621c7ce4cc190559b05430f9cdb92 100644 (file)
@@ -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;