imap: Introduced the mailbox_uidvalidity variable
Added the mailbox_uidvalidity variable to the per-connection structure in preparation for checking the UIDVALIDITY mailbox attribute.
This commit is contained in:
@@ -1676,6 +1676,9 @@ static CURLcode imap_disconnect(struct connectdata *conn, bool dead_connection)
|
|||||||
/* Cleanup the SASL module */
|
/* Cleanup the SASL module */
|
||||||
Curl_sasl_cleanup(conn, imapc->authused);
|
Curl_sasl_cleanup(conn, imapc->authused);
|
||||||
|
|
||||||
|
/* Cleanup our connection based variables */
|
||||||
|
Curl_safefree(imapc->mailbox_uidvalidity);
|
||||||
|
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ struct imap_conn {
|
|||||||
bool tls_supported; /* StartTLS capability supported by server */
|
bool tls_supported; /* StartTLS capability supported by server */
|
||||||
bool login_disabled; /* LOGIN command explicitly disabled by server */
|
bool login_disabled; /* LOGIN command explicitly disabled by server */
|
||||||
bool ir_supported; /* Initial response supported 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;
|
extern const struct Curl_handler Curl_handler_imap;
|
||||||
|
|||||||
Reference in New Issue
Block a user