if (ctx == NULL || ctx->magic != M_IMAP || CTX_DATA->selected_ctx != ctx)
if (ctx == NULL || ctx->magic != M_IMAP || CTX_DATA->ctx != ctx)
void imap_keepalive (void){  CONTEXT *ctx = Context;    if (ctx == NULL || ctx->magic != M_IMAP ||      CTX_DATA->selected_ctx != ctx)    return;  imap_check_mailbox (ctx, NULL);}