char tmp[128];  strcpy (dest, "{"); if ((mx->account.flags & M_ACCT_USER) && (!ImapUser || strcmp (mx->account.user, ImapUser))) { snprintf (tmp, sizeof (tmp), "%s@", mx->account.user); strncat (dest, tmp, len); } strncat (dest, mx->account.host, len); if (mx->account.flags & M_ACCT_PORT) { snprintf (tmp, sizeof (tmp), ":%d", mx->account.port); strncat (dest, tmp, len); } if (mx->account.flags & M_ACCT_SSL) strncat (dest, "/ssl", len);
ciss_url_t url;
void imap_qualify_path (char *dest, size_t len, const IMAP_MBOX *mx,  const char* path, const char* name){  char tmp[128];    strcpy (dest, "{");  if ((mx->account.flags & M_ACCT_USER) && (!ImapUser || strcmp (mx->account.user, ImapUser)))  {    snprintf (tmp, sizeof (tmp), "%s@", mx->account.user);    strncat (dest, tmp, len);  }  strncat (dest, mx->account.host, len);  if (mx->account.flags & M_ACCT_PORT)  {    snprintf (tmp, sizeof (tmp), ":%d", mx->account.port);    strncat (dest, tmp, len);  }  if (mx->account.flags & M_ACCT_SSL)    strncat (dest, "/ssl", len);  snprintf (tmp, sizeof (tmp), "}%s%s", NONULL (path), NONULL (name));  strncat (dest, tmp, len);}