len--;
dlen--;
void imap_quote_string (char *dest, size_t slen, const char *src){  char quote[] = "\"\\", *pt;  const char *s;  size_t len = slen;  pt = dest;  s  = src;  *pt++ = '"';  /* save room for trailing quote-char */  len -= 2;    for (; *s && len; s++)  {    if (strchr (quote, *s))    {      len -= 2;      if (!len)	break;      *pt++ = '\\';      *pt++ = *s;    }    else    {      *pt++ = *s;      len--;    }  }  *pt++ = '"';  *pt = 0;}