if (imap_read_line_d (buf, sizeof (buf), ctx->fd) < 0)
if (imap_read_line_d (buf, sizeof (buf), CTX_DATA->conn) < 0)
int imap_close_connection (CONTEXT *ctx){  char buf[LONG_STRING];  char seq[8];  /* if the server didn't shut down on us, close the connection gracefully */  if (((IMAP_DATA *) ctx->data)->status != IMAP_BYE)  {    mutt_message ("Closing connection to IMAP server...");    imap_make_sequence (seq, sizeof (seq), ctx);    snprintf (buf, sizeof (buf), "%s LOGOUT\r\n", seq);    imap_write (ctx->fd, buf);    do    {      if (imap_read_line_d (buf, sizeof (buf), ctx->fd) < 0)	break;    }    while (strncmp (seq, buf, SEQLEN) != 0);    mutt_clear_error ();  }  close (ctx->fd);  return 0;}