the store may be discarded before we reach maildir_select() again, which will leave us with a dangling pointer.
@@ -763,6 +763,7 @@ maildir_select( store_t *gctx, int create,
maildir_cleanup( gctx );
gctx->msgs = 0;
+ ctx->excs = 0;
ctx->uvfd = -1;
#ifdef USE_DB
ctx->db = 0;