static int imap_read_line (char *buf, size_t buflen, int fd)
static int imap_read_line (char *buf, size_t buflen, CONNECTION *conn)
static int imap_read_line (char *buf, size_t buflen, int fd){  char ch;  int i;  for (i = 0; i < buflen; i++)  {    if (imap_readchar (fd, &ch) != 1)      return (-1);    if (ch == '\n')      break;    buf[i] = ch;  }  buf[i-1] = 0;  return (i + 1);}