From: Jiri Hruska Date: Wed, 27 Feb 2013 17:31:08 +0000 (+0100) Subject: imap: Introduced the mailbox variable X-Git-Tag: curl-7_30_0~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d03aa16164dba606e9d6a6bfef741ebb1bedfd7f;p=thirdparty%2Fcurl.git imap: Introduced the mailbox variable Added the mailbox variable to the per-connection structure in preparation for checking for an already selected mailbox. --- diff --git a/lib/imap.c b/lib/imap.c index 9f0e6cb95d..38e25355b9 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 aafa634170..f9bae2e85b 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 */ };