char seq[8];
char seq[SEQLEN+1];
int imap_exec (char* buf, size_t buflen, IMAP_DATA* idata, const char* cmd,  int flags){  char* out;  int outlen;  char seq[8];  /* create sequence for command */  imap_make_sequence (seq, sizeof (seq));  /* seq, space, cmd, \r\n\0 */  outlen = strlen (seq) + strlen (cmd) + 4;  out = (char*) safe_malloc (outlen);  snprintf (out, outlen, "%s %s\r\n", seq, cmd);  mutt_socket_write (idata->conn, out);  safe_free ((void**) &out);  do  {    if (mutt_socket_read_line_d (buf, buflen, idata->conn) < 0)      return (-1);    if (buf[0] == '*' && imap_handle_untagged (idata, buf) != 0)      return (-1);  }  while (mutt_strncmp (buf, seq, SEQLEN) != 0);  imap_cmd_finish (seq, idata);  if (!imap_code (buf))  {    char *pc;    if (flags == IMAP_OK_FAIL)      return (-2);    dprint (1, (debugfile, "imap_exec(): command failed: %s\n", buf));    pc = buf + SEQLEN;    SKIPWS (pc);    pc = imap_next_word (pc);    mutt_error (pc);    sleep (1);    return (-1);  }  return 0;}