mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
imap: Introduced the mailbox variable
Added the mailbox variable to the per-connection structure in preparation for checking for an already selected mailbox.
This commit is contained in:
parent
aa44ec62aa
commit
d03aa16164
@ -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;
|
||||
|
@ -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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user