> The attached patch should help when the connection to your postponed
> folder times out and you can't reconnect without restarting mutt. I'd
> like anyone who has that problem to try it and let me know how it
> works.
I dug a little deeper. The attached patch seems to work better. It
complains the first time you try to recall a message, but works the
second.
mutt_error (_("Mailbox closed"));
mutt_sleep (1);
idata->state = IMAP_DISCONNECTED;
+ }
+
+ if (idata->state != IMAP_SELECTED)
+ {
+ idata->state = IMAP_DISCONNECTED;
idata->status = 0;
}
}
return 0;
fail:
- idata->state = IMAP_AUTHENTICATED;
+ if (idata->state == IMAP_SELECTED)
+ idata->state = IMAP_AUTHENTICATED;
fail_noidata:
FREE (&mx.mbox);
return -1;
conn = idata->conn;
ctx->magic = M_IMAP;
- ctx->data = (void *) idata;
+ ctx->data = idata;
/* check mailbox existance */