Commit d679a9ea authored by Rocco Rutte's avatar Rocco Rutte

Guard idata->mailbox read in imap_mailbox_state. Closes #3057.

parent 81bf12aa
......@@ -228,7 +228,7 @@ int imap_mailbox_state (const char* path, struct mailbox_state* state)
return -1;
if (!imap_mxcmp(mx.mbox, idata->mailbox))
if (idata->ctx && !imap_mxcmp(mx.mbox, idata->mailbox))
state->new = idata->ctx->new;
state->messages = idata->ctx->msgcount;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment