aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Hruska <jirka@fud.cz>2013-02-27 18:31:08 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-02-27 20:08:00 +0000
commitd03aa16164dba606e9d6a6bfef741ebb1bedfd7f (patch)
tree5e3a65628ff8f66125efddd3f61810b7b0c5dacf
parentaa44ec62aabab70b0f5e513726dd68dea8bbd822 (diff)
imap: Introduced the mailbox variable
Added the mailbox variable to the per-connection structure in preparation for checking for an already selected mailbox.
-rw-r--r--lib/imap.c1
-rw-r--r--lib/imap.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 9f0e6cb95..38e25355b 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -1705,6 +1705,7 @@ static CURLcode imap_disconnect(struct connectdata *conn, bool dead_connection)
Curl_sasl_cleanup(conn, imapc->authused);
/* Cleanup our connection based variables */
+ Curl_safefree(imapc->mailbox);
Curl_safefree(imapc->mailbox_uidvalidity);
return CURLE_OK;
diff --git a/lib/imap.h b/lib/imap.h
index aafa63417..f9bae2e85 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 disabled by server */
bool ir_supported; /* Initial response supported by server */
+ char *mailbox; /* The last selected mailbox */
char *mailbox_uidvalidity; /* UIDVALIDITY parsed from select response */
};