snprintf (buf, sizeof (buf), _("Closing connection to %s..."), conn->mx.host); mutt_message (buf);
mutt_message (_("Closing connection to %s..."), conn->mx.host);
void imap_logout_all (void) {  CONNECTION* conn;  char buf[SHORT_STRING];  char seq[SEQLEN+1];    conn = Connections;  while (conn)  {    if (conn->up)    {      snprintf (buf, sizeof (buf), _("Closing connection to %s..."),        conn->mx.host);      mutt_message (buf);      imap_make_sequence (seq, sizeof (seq));      snprintf (buf, sizeof (buf), "%s LOGOUT\r\n", seq);      mutt_socket_write (conn, buf);      do      {	if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)	  break;      }      while (mutt_strncmp (buf, seq, SEQLEN) != 0);      mutt_clear_error ();      mutt_socket_close (conn);    }        Connections = conn->next;    if (conn->data) {      dprint (2, (debugfile,        "imap_logout_all: Connection still has valid CONTEXT?!\n"));    }    free (conn);    conn = Connections;  }}