tag 514309 +patch thanks I've already forwarded this patch to Christoph, it's grabbed from upstream and fixes the problem in mutt 1.5.18-*, this patch is already included in the upstream code of 1.5.19.
Cheers Antonio
--- mutt-1.5.18/imap/browse.c 2008-05-17 20:52:24.000000000 +0200 +++ mutt-7ddf1d1cc490/imap/browse.c 2009-01-27 21:58:15.000000000 +0100 @@ -228,7 +230,7 @@ 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;