This is a continuation of commit
59a2125b49f2 with changes made in the
default branch.
Thanks again to Will Yardley for helping test the imap read-headers
changes and discovering this bug.
idata->ctx = NULL;
hash_destroy (&idata->uid_hash, NULL);
+ FREE (&idata->msn_index);
+ idata->msn_index_size = 0;
+ idata->max_msn = 0;
for (i = 0; i < IMAP_CACHE_LEN; i++)
{
/* mailbox may not have fully loaded */
if (ctx->hdrs[i] && ctx->hdrs[i]->data)
imap_free_header_data ((IMAP_HEADER_DATA**)&(ctx->hdrs[i]->data));
- FREE (&idata->msn_index);
- idata->msn_index_size = 0;
return 0;
}